Created
October 25, 2015 11:14
-
-
Save popey456963/c911fbcf06f6511257f6 to your computer and use it in GitHub Desktop.
Reverse Words
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
s = input().split(" ") | |
a = [] | |
for i in s: | |
a.append(i[::-1]) | |
print(" ".join(a)) |
developius
commented
Oct 25, 2015
b=""
for i in input().split():b+=i[::-1]+" "
print(b[:-1])
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment