Created
January 11, 2016 05:19
-
-
Save libert-xyz/73d454242330a71f9b45 to your computer and use it in GitHub Desktop.
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
#Libert R Schmidt | |
#http://www.practicepython.org/exercise/2014/05/21/15-reverse-word-order.html | |
def reverse(w): | |
l = w.split() | |
l.reverse() | |
res = ' '.join(l) | |
print (res) | |
word = str(input("Write something: ")) | |
reverse(word) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome!