string=str(input("Enter a string:")) print("Reverse string is ",string[::-1])
Enter a string:hai Reverse string is :iah
Comments :