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 trial

Python Python Collections (Retired) Slices First Slice

Tobias Erhart
Tobias Erhart
2,481 Points

I don`t get this.

I don`t know how tha should work please Help me

William Li
William Li
Courses Plus Student 26,868 Points

Hi Tobias, please indicate which quiz problem you aren't getting; because each time you take the quiz, the order of the questions is shuffled.

Tobias Erhart
Tobias Erhart
2,481 Points

Please 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
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi 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! :sparkles:

I kept doing a_list[::], I wish the quiz accepted that answer as well since it's valid :(

Jackson Lai
Jackson Lai
3,538 Points

You just review the video carefully and you won't have any problem for the quiz

Tobias Erhart
Tobias Erhart
2,481 Points

ive already done that 3 times but i cant find it.