Created
May 13, 2017 15:59
-
-
Save odanga94/6f23a51404578c4f0d861cb951f62f68 to your computer and use it in GitHub Desktop.
PracticePython/Exercise15.py
This file contains hidden or 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 reverse(): | |
original = raw_input("Enter a string containing multiple words:") | |
reverse = " ".join(original.split()[::-1]) | |
print(reverse) | |
reverse() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment