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


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

Solution

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



List all Python Programs