Skip to content

Instantly share code, notes, and snippets.

@za
Created July 15, 2015 03:58
Show Gist options
  • Save za/25143f7dabd502baee42 to your computer and use it in GitHub Desktop.
Save za/25143f7dabd502baee42 to your computer and use it in GitHub Desktop.
Python2 reverse string with for loop
a = 'Newton'
for i in range(1, len(a)+1):
print a[-i]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment