Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created October 25, 2015 11:14
Show Gist options
  • Save popey456963/c911fbcf06f6511257f6 to your computer and use it in GitHub Desktop.
Save popey456963/c911fbcf06f6511257f6 to your computer and use it in GitHub Desktop.
Reverse Words
s = input().split(" ")
a = []
for i in s:
a.append(i[::-1])
print(" ".join(a))
@developius
Copy link

b="";
for w in raw_input().split():b+=w[::-1]+" "
print(b[:-1])

@popey456963
Copy link
Author

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