Skip to content

Instantly share code, notes, and snippets.

@Ryanb58
Created October 23, 2014 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ryanb58/dc641dd2f3e99c87a1c6 to your computer and use it in GitHub Desktop.
Save Ryanb58/dc641dd2f3e99c87a1c6 to your computer and use it in GitHub Desktop.
Simple String reversal program.
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