Last active
August 29, 2015 14:05
-
-
Save jsstrn/4c3953abcaabdcfc2cff to your computer and use it in GitHub Desktop.
These are my solutions to the Coderbyte challenges written in Python
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
def FirstReverse(str): | |
# create a new empty string | |
rstr = "" | |
# loop through characters in str | |
for i in str: | |
# add characters to the front of rstr | |
rstr = i + rstr | |
return rstr | |
print FirstReverse(raw_input("Enter a word: ")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment