At the restaurant you add a tip to the bill. Write with_tip(bill, percent) to return the bill plus a percent% tip, rounded to 2 decimal places with round. If percent is not given, it is 10.
with_tip(50)→55.0with_tip(80, 15)→92.0# your code here: percent defaults to 10
def with_tip(bill, percent):
# your code here: the tip is bill × percent / 100
tip = 0
return round(bill + tip, 2)
Run tries the examples. When they look right, Submit.