14 lines
308 B
Python
14 lines
308 B
Python
"""
|
|
Reverse string utility.
|
|
|
|
This script prompts the user for a string and prints the reversed version.
|
|
"""
|
|
|
|
def main():
|
|
user_input = input("Please enter a string to reverse: ")
|
|
reversed_string = user_input[::-1]
|
|
print("Reversed string: ", reversed_string)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|