8/15 What's wrong? (Solved)


#1

My code works, but smth wrong...

my_list =[i for i in range(1, 11)] # List of numbers 1 - 10

Add your code below!

print (my_list[0:11:2])


#2

my_list = range(1, 11)

print my_list[::2]

For the print command, you are asked to omit the start and end index, only specifying a stride. The stride index is third in the start:end:stride pattern, so the above works.


#4

Not sure... Can you post your complete code?