text = input("Enter a string: ") last_character = text[-1] print(f"The last character of the string is: {last_character}")
To embed this project on your website, copy the following code and paste it into your website's HTML: