Skip to content

Instantly share code, notes, and snippets.

@Raj39120
Created May 2, 2020 23:17
Show Gist options
  • Save Raj39120/4884af5ca09130c90ef7f4f216f0ee34 to your computer and use it in GitHub Desktop.
Save Raj39120/4884af5ca09130c90ef7f4f216f0ee34 to your computer and use it in GitHub Desktop.
def word_reversal_function():
user_input = raw_input("Enter a list of words over here: ")
broken_input = user_input.split(" ")
print(" ".join(broken_input[::-1]))
word_reversal_function()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment