Please write a program which accepts a string from console and print it in reverse order.


Topic: Please write a program which accepts a string from console and print it in reverse order.

Solution

s=input()
s = s[::-1]
print(s)



List all Python Programs