Question: PARTICIPATION ACTIVITY 6 . 1 3 . 3 : Mixing keyword and default arguments. Assume the function below is defined: def split _ check (

PARTICIPATION ACTIVITY
6.13.3: Mixing keyword and default arguments.
Assume the function below is defined:
def split_check(amount=10, num_people=2, tax_percentage=0.095, tip_percentage=0.18):
# ...
When entering answers, use the same number of significant digits as the default parameter values in the split_check() definition.
1)
What will the parameter tax_percentage be assigned for the following call? Type ERROR if the call is invalid. split_check(amount=49.50, num_people=3)
Check
Show answer
2)
Write a statement that splits a $50 check among four people. Use the default tax percentage and tip amount.
Check
Show answer
3)
Write a statement that splits a $25 check among three people and leaves a 25% tip. Use the default tax rate.
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!