file.py
# WAP accept string and return reverse
str1=str(input("Enter String : "))
print(str1[::-1])
Output
file.py
Enter String : Kaustubh
hbutsuaK
# WAP accept string and return reverse
str1=str(input("Enter String : "))
print(str1[::-1])
Output
Enter String : Kaustubh
hbutsuaK