Generation

generate functionSat, 26 Nov 2022

calculate a bill and separate per person with tip

def bill_per_person(bill, num_of_people, tip): bill = float(bill) num_of_people = float(num_of_people) tip = float(tip) bill_total = bill + (bill * (tip/100)) return bill_total / num_of_people bill_per_person(100, 4, 20)

Want to kickstart your project?Use the new AI Studio to create your code