Created
October 23, 2014 22:22
-
-
Save Ryanb58/dc641dd2f3e99c87a1c6 to your computer and use it in GitHub Desktop.
Simple String reversal program.
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
reme = 'em esrever' | |
print(reme) | |
mere = '' | |
L = list(reme) | |
num = len(reme) - 1 | |
while num >= 0: | |
#print(reme[num]) | |
mere+=reme[num] | |
num-=1 | |
#print(reme[num]) | |
print(mere) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment