Created
May 2, 2020 23:17
-
-
Save Raj39120/4884af5ca09130c90ef7f4f216f0ee34 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
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