This Python script demonstrates how to manipulate string case using built-in Python methods.
- Original Message: Displays the original message stored in the
messagevariable. - Lower Case: Converts the string to all lowercase letters using the
lower()method. - Upper Case: Converts the string to all uppercase letters using the
upper()method.
Original message: Random message!
Lower case: random message!
Upper case: RANDOM MESSAGE!
message = "Random message!": Initializes a variablemessagewith the text "Random message!".print("Original message: " + message): Prints the original message.print("Lower case: " + message.lower()): Converts the message to lowercase and prints it.print("Upper case: " + message.upper()): Converts the message to uppercase and prints it.