if you ask me to write functions for practice, they will look like this....
def total_per_dingdong(bill_amount, total_dingdongs):
bill_w_tip = bill_amount * 1.2
per_dingdong = bill_w_tip / total_dingdongs
return per_dingdong
we_eatin = total_per_dingdong(100,4)
print("Each dingdong owes..$",we_eatin)
when your teacher is an AI they encourage you to have some fun while writing code snippets 😘