Created
July 15, 2015 03:58
-
-
Save za/25143f7dabd502baee42 to your computer and use it in GitHub Desktop.
Python2 reverse string with for loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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