Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTobias Erhart
2,481 PointsPlease fill in the correct answer in each blank provided below. Fill in the blank(s) below: Skip Quiz Review Video Get Help Next Question a_list = [1, 2, 3] a_list Copy the entire list with a slice.
it`s this one
2 Answers
Jennifer Nordell
Treehouse TeacherHi there, Tobias! When dealing with slices we use the start, step, and stop. The step is considered to be one unless otherwise specified. If the start is not specified, it's considered to be 0. And if the stop isn't specified, it's considered to be the end. So we could get the entirety of that list by using
a_list[:]
However, I feel the quiz might contain some tricky wording as it says to copy the list. It might very well make a copy of this in memory, but because it's never assigned to anything else we can't really access the results of this.
Hope this helps!
SC3 Rocks
33,474 PointsI kept doing a_list[::]
, I wish the quiz accepted that answer as well since it's valid :(
Jackson Lai
3,538 PointsYou just review the video carefully and you won't have any problem for the quiz
Tobias Erhart
2,481 Pointsive already done that 3 times but i can
t find it.
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 PointsHi Tobias, please indicate which quiz problem you aren't getting; because each time you take the quiz, the order of the questions is shuffled.