Python Program that reads a string and display it in reverse order.


Str=input('enter any string')

l=len(str)

a=str[::-1]

print(' original string ',Str)

print(' reversed string ',a) 

Comments

Some popular posts

Python Program that computes the net amount of a bank account based a transaction log from console input.