Skip to content

Instantly share code, notes, and snippets.

@jsstrn
Last active August 29, 2015 14:05
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 jsstrn/4c3953abcaabdcfc2cff to your computer and use it in GitHub Desktop.
Save jsstrn/4c3953abcaabdcfc2cff to your computer and use it in GitHub Desktop.
These are my solutions to the Coderbyte challenges written in Python
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