Created
February 6, 2017 22:38
-
-
Save shamikalashawn/91341c7e00b14919af3a742117ef4479 to your computer and use it in GitHub Desktop.
The string provided is returned reversed.
This file contains hidden or 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
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