13 Prepare: Checkpoint
Overview
This checkpoint is designed to help you practice writing basic functions.
Assignment
Write three functions:
display_regular
—Receives a string and prints it out, exactly as received.display_uppercase
—Receives a string, converts it to upper case, and then prints it out.display_lowercase
—Receives a string, converts it to lower case, and then prints it out.
In your program below the functions, ask the user to type a message. Then, pass that message to each of the three functions, so it it displays it each way, as shown:
What is your message? Brother Burton
Brother Burton
BROTHER BURTON
brother burton
Another example is:
What is your message? The only thing we have to fear is FEAR itself!
The only thing we have to fear is FEAR itself!
THE ONLY THING WE HAVE TO FEAR IS FEAR ITSELF!
the only thing we have to fear is fear itself!
Sample Solution
When your program is finished, please view a sample solution of this program to compare your approach to that one.
You should work to complete this checkpoint program first, without looking at the sample solution. However, if you have worked on it for at least an hour and are still having problems, you may feel free to use the sample solution to help you finish your program.
Sample solution: check13_sample.py
Testing Procedure
Verify that your program works correctly by following each step in this testing procedure:
Try your program with each of the following conditions and ensure that it works as expected.
A single word
A phrase with multiple words
A word in ALL CAPS
A phrase where each word starts with a capital
An empty string
Submission
When complete, please report your progress in the associated I-Learn quiz.