Question: please help me to do this using Pythons with Jupyter ? thanks 1. Write a function my_tip_calc(bi11. party) where bil1 is the total cost of

please help me to do this using Pythons with Jupyter ? thanks
please help me to do this using Pythons with Jupyter ? thanks

1. Write a function my_tip_calc(bi11. party) where bil1 is the total cost of a meal and party is the number of people in the group. The tip should be calculated as 15% for a party strictly less than six people, 18% for a party strictly less than eight, 20% for a party less than 11 , and 25% for a party 11 or more. A couple of test cases are given below. In [] : def my_tip_calc(bil1, party): \# write your function code here return tips In [ ]: \( \begin{array}{l} \text { If } t=16.3935 \\ t=\text { my_tip_calc }(109.29 .3) \\ \text { print( } t)\end{array} \) In []:#t=19.6722 t= my_tip_calc (109.29.7) print(t) In []:#t=21.8580 t= my_tip_calc (109.29,9) print( t) In []:#t=27.3225 t - my_tip_calc (109.29,12) print(t)

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!