8/17 help please


My code
my_list = ([i for i in range(1, 11)])
print (my_list[0:11:2])

Oops, try again. Make sure to omit the appropriate indices in your list slice. Check the Hint if you need help!


Use list slicing to print out every odd element of my_list from start to finish.
Omit the start and end index. You only need to specify a stride.

print my_list[::2]