Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created January 11, 2016 05:19
Show Gist options
  • Select an option

  • Save libert-xyz/73d454242330a71f9b45 to your computer and use it in GitHub Desktop.

Select an option

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

mprat commented Mar 9, 2016

Copy link
Copy Markdown

Awesome!

@whiz25

whiz25 commented Sep 24, 2017

Copy link
Copy Markdown

This is great

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