Skip to content

Instantly share code, notes, and snippets.

@za
Last active August 29, 2015 14:24
Show Gist options
  • Save za/120a4124fabc06652368 to your computer and use it in GitHub Desktop.
Save za/120a4124fabc06652368 to your computer and use it in GitHub Desktop.
Python 3 Reverse String with Loop
a = 'Newton'
for i in range(1, len(a)+1):
print(a[-i], end="")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment