Reverse a String
Completed
Read a line and print it reversed.
Input
One line.
Output
The reversed line.
Example
Input
hello
Output
olleh
Editor
Python
Hints
A slice can have a step: s[start:stop:step].
A step of -1 walks backwards.
Solution explanation
s[::-1] is the idiomatic way to reverse a sequence.
Show solution
print(input()[::-1])