Reverse a String in Python

This program reverses a given string.

 
str = input("Enter a string: ")
reversedStr = str[::-1]
print("Reversed string:", reversedStr)

No comments:

Post a Comment

MS Excel Logical Functions

Logical functions in Excel are powerful tools that help you make decisions based on conditions. Whether you're comparing values or testi...

Post Count

Loading...