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}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: