Question: Write a function named courseLoad. The function courseLoad takes two parameters 1. light, an int that is the threshold for a light course load 2.
Write a function named courseLoad. The function courseLoad takes two parameters
1. light, an int that is the threshold for a light course load
2. heavy, an int that is the threshold for a heavy course load
The function courseLoad should
1. ask the user how many credits they are taking
2. if the number of credits is less than or equal to light, print a message saying that that number of credits is a light schedule and return the string 'light'
3. if the number of credits is greater than or equal to heavy, print a message saying that that number of credits is a heavy schedule and return the string 'heavy'
4. otherwise print a message saying that that number of credits is an average schedule and return the string 'average'
For example, the following would be correct input and output
>>> mySchedule = courseLoad(11, 16)
How many credits are you taking? 14
14 is an average schedule
>>> print(mySchedule)
average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
