Question: PARTICIPATION ACTIVITY 6 . 1 3 . 2 : Default parameter values. The following function is defined: def split _ check ( amount , num

PARTICIPATION ACTIVITY
6.13.2: Default parameter values.
The following function is defined:
def split_check(amount, num_people, tax_percentage=0.095, tip_percentage=0.15)
# ...
1)
What will the parameter tax_percentage be assigned for the following call? Type ERROR if the call is invalid. split_check(65.50,3)
Check
Show answer
2)
What will the parameter tax_percentage be assigned for the following call? Type ERROR if the call is invalid. split_check(65.50,3,0.125)
Check
Show answer
3)
What will the parameter num_people be assigned for the following call? Type ERROR if the call is invalid. split_check(12.50, tip_percentage=0.18)
Check
Show answer
4)
What will the parameter num_people be assigned for the following call? Type ERROR if the call is invalid. split_check(tip_percentage=0.18,12.50,4)
Check
Show answer

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!