Skip to content

Instantly share code, notes, and snippets.

@yono
Created May 13, 2010 04:32
Show Gist options
  • Save yono/399493 to your computer and use it in GitHub Desktop.
Save yono/399493 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding:utf-8 -*-
string = "abcde"
reverse = []
count = len(string) - 1
while True:
reverse.append(string[count])
count = count - 1
if count < 0:
break
print ''.join(reverse)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment