<filename>2_intermediate/chapter11/solutions/case.py<gh_stars>1-10
"""
Case

Display the string "Apple" in the following formats:
1) normally
2) all uppercase
3) all lowercase

Display the string "mRoWiE" in the same 3 formats.

Ask the user to input a sentence, and display this
input in the same 3 formats.

Do this in AT MOST 8 lines of code.
By the end of the program, 9 lines should have been
displayed (3 formats for each of the 3 strings).

Example of the 3 formats for one string:
Apple
APPLE
apple
"""


# Define a function that prints the 3 formats.
def display(str):
    print(str)
    print(str.upper())
    print(str.lower())


display("Apple")
display("mRoWiE")
display(input("Enter a sentence: "))

<filename>2_intermediate/chapter11/solutions/case.py<gh_stars>1-10
"""
Case

Display the string "Apple" in the following formats:
1) normally
2) all uppercase
3) all lowercase

Display the string "mRoWiE" in the same 3 formats.

Ask the user to input a sentence, and display this
input in the same 3 formats.

Do this in AT MOST 8 lines of code.
By the end of the program, 9 lines should have been
displayed (3 formats for each of the 3 strings).

Example of the 3 formats for one string:
Apple
APPLE
apple
"""


# Define a function that prints the 3 formats.
def display(str):
    print(str)
    print(str.upper())
    print(str.lower())


display("Apple")
display("mRoWiE")
display(input("Enter a sentence: "))

Case  Display the string "Apple" in the following formats: 1) normally 2) all uppercase 3) all lowercase  Display the string "mRoWiE" in the same 3 formats.  Ask the user to input a sentence, and display this input in the same 3 formats.  Do this in AT MOST 8 lines of code. By the end of the program, 9 lines should have been displayed (3 formats for each of the 3 strings).  Example of the 3 formats for one string: Apple APPLE apple # Define a function that prints the 3 formats.