Question: HW4.9. Fix the function so the string can be outputted The function below takes the following arguments: color: A string containing the color of the

HW4.9. Fix the function so the string can be outputted The function below takes the following arguments: color: A string containing the color of the paint. buckets: An integer containing the number of buckets a user has. gallons_per_bucket: A floating point number containing the number of gallons of paint contained in each bucket. Fix the function so it successfully outputs the number of gallons of paint a person has. student.py 1- def paint_num_gallons(color, buckets, gallons_per_bucket):| 2 total_gallons = buckets * gallons_per_bucket 3 print("You have " + total_gallons + " gallons in your + buckets + bucket(s) of paint.") + color + Restore original file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
