Skip to content

Instantly share code, notes, and snippets.

@pgainda
Created October 23, 2013 18:08
Show Gist options
  • Save pgainda/7123630 to your computer and use it in GitHub Desktop.
Save pgainda/7123630 to your computer and use it in GitHub Desktop.
A positive stride progresses through the list from left to right; a negative stride progresses through the list from right to left.
my_list = range(1, 11)
# Add your code below!
backwards= my_list[::-1]
print backwards
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment