Question: Python 8. Define and call a function named shoutIt(). This function should display a phrase in ALL CAPS with ! concatenated at the end. Initialize

Python 8. Define and call a function named shoutIt(). This function should display a phrase in ALL CAPS with ! concatenated at the end. Initialize a variable myPhrase and assign it a short phrase of your choice (example: extra toppings, please). Example output: EXTRA TOPPINGS, PLEASE! 10. Write the code to define and call a function using a variable as the argument: Define a function screamThis Get user input() for the string variable wordsToYell Call screamThis function with wordsToYell variable as the argument Display output in all caps with ! concatenated at the end Example output: DONT BURN MY MARSHMALLOW! 11. Write the code using the print() function to insert a blank line after the previous code. 12. Copy the code from the screamThis function above and revise it (add one line, edit one line) so the function will include a default argument (a string of your choice). Place this line of code as the last line.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!