Created
August 19, 2017 09:23
-
-
Save tardonly/50498b0caf0289c030810dec18ba3fbb to your computer and use it in GitHub Desktop.
Reverse Word Order
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
a = input("enter line with apostrophe:") | |
a= a.split() | |
b=[] | |
for i in range(len(a)): | |
b.append(a[len(a)-i-1]) | |
print(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment