0

How can we reverse a string input and print in python?

3rd Apr 2020, 11:22 AM
bala chandra reddy
bala chandra reddy - avatar
2 Respostas
+ 2
print(input()[::-1])
3rd Apr 2020, 11:39 AM
Tricker
0
try this: print(input()[-1::])
3rd Apr 2020, 11:24 AM
Salman Nazeer
Salman Nazeer - avatar