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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started