Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created January 11, 2016 05:19
Show Gist options
  • Save libert-xyz/73d454242330a71f9b45 to your computer and use it in GitHub Desktop.
Save libert-xyz/73d454242330a71f9b45 to your computer and use it in GitHub Desktop.
#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)
@mprat
Copy link

mprat commented Mar 9, 2016

Awesome!

@whiz25
Copy link

whiz25 commented Sep 24, 2017

This is great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment