You are viewing a single comment's thread. Return to all comments →
Python
count=0 total =0 bill.remove(bill[k]) for i in bill: count += i if b==count/2: print("Bon Appetit") else: total=int(b-(count/2)) print(total)
Seems like cookies are disabled on this browser, please enable them to open this website
Bill Division
You are viewing a single comment's thread. Return to all comments →
Python
count=0 total =0 bill.remove(bill[k]) for i in bill: count += i if b==count/2: print("Bon Appetit") else: total=int(b-(count/2)) print(total)