Skip to content

Instantly share code, notes, and snippets.

@charukiewicz
Last active August 29, 2015 14:07
Show Gist options
  • Save charukiewicz/1d64ca0c42dce2ec3454 to your computer and use it in GitHub Desktop.
Save charukiewicz/1d64ca0c42dce2ec3454 to your computer and use it in GitHub Desktop.
Reverse list
def reverse(input):
n = len(input)
reversed = []
for i in range(1,n+1):
reversed.append(input[n-i])
return reversed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment