9.Reversing a list


#1



https://www.codecademy.com/courses/python-beginner-en-KAgt5/2/3?curriculum_id=4f89dab3d788890003000096

Oops, try again. Make sure to use list slicing and a negative stride in your answer!


Replace this line with your code. 
my_list = range(1, 11)

# Add your code below!
backwards = my_list
print backwards[::-1]


#2

already got it...no need for any help.


#3

you should post your own solution


#4

my_list = range(1, 11)

Add your code below!

backwards = my_list[::-1]
print backwards

@jlegere


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.