def reverse_string(string):
return string[::-1]
# Example usage:
text = input("Enter a string: ")
reversed_text = reverse_string(text)
print(f"The reversed string is: {reversed_text}")
To embed this project on your website, copy the following code and paste it into your website's HTML: