Skip to content

Commit

Permalink
Merge pull request YearOfProgramming#142 from slansford/master
Browse files Browse the repository at this point in the history
Challenge 1 in Python
  • Loading branch information
Remillardj committed Jan 4, 2017
2 parents 893ab80 + f6bcc35 commit fb1dab7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions challenge_1/python/slansford/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Prints reversed string provided by user input. Uses Python 3.6
9 changes: 9 additions & 0 deletions challenge_1/python/slansford/src/challenge_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#Program asks user for word, reverses word, and returns the reversed word

#Asks user for input and reverses letters of word

rev_word = input('What word would you like reversed? ')[::-1]

#prints reversed word

print(rev_word)

0 comments on commit fb1dab7

Please sign in to comment.