Python Snippets For Class 11 and Class 12
List of Python programs for students studying Informatics Practices and Computer Science.
Program 1: Write a program in python to accept a string and display it in reverse order.
# write a program in python to accept a string and display it in a reverse order.str1=input("Enter a string: ")print("Reverse string is: ",str1[::-1])
Output: