PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
🏆🏆🏆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!!!
"""
st = input("Your string: ")
print(" ".join(list(map(lambda s: "".join(s[::-1]), st.split(" ")))))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run