Skip to content

Instantly share code, notes, and snippets.

@shamikalashawn
Created February 6, 2017 22:38
Show Gist options
  • Save shamikalashawn/91341c7e00b14919af3a742117ef4479 to your computer and use it in GitHub Desktop.
Save shamikalashawn/91341c7e00b14919af3a742117ef4479 to your computer and use it in GitHub Desktop.
The string provided is returned reversed.
def backwards(string):
num = 1
while num < (len(string)+1):
print (string[-num], end="")
num += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment