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
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
Get step-by-step solutions from verified subject matter experts
