PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""
🏆🏆🏆CHALLENGE🏆🏆🏆 Playing with Strings
This is a modified challenge from another challenge.
Task==> You have to modify the string in such a way that their order remains same but the word itself is reversed.
Example:
Input==> This is a Sololearn Challenge
Output==> sihT si a nraeloloS egnellahC
All The Best!!!
"""
user_ans=input()
print("Input==>", user_ans)
print("Output==> ", end="")
for i in user_ans[::-1].split()[::-1]:
print(i, end=" ")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run