string.py
#Character string to invert input_line = input() #Invert here ans = input_line[::-1] #answer print(ans)
It's a code that you don't use often, but it's worth remembering.
Recommended Posts