Here's a simple Python program that achieves the desired functionality. You can copy and paste this code into PythonAnywhere or any other Python environment you wish to use.
# Asking the user for their name
name = input("What is your name? ")
# Converting the name to uppercase and lowercase
uppercase_name = name.upper()
lowercase_name = name.lower()
# Printing the results
print(f"Your name in all uppercase letters is: {uppercase_name}")
print(f"Your name in all lowercase letters is: {lowercase_name}")
Instructions to Run on PythonAnywhere
- Go to PythonAnywhere.
- Sign in or create an account if you don't have one.
- Start a new console or a new file.
- Copy the code above into the console or file.
- Run the code to see the output.
After you run your code successfully, you can share the link to your PythonAnywhere file or console as required. If you have any further questions or need assistance, feel free to ask!