You are viewing a single comment's thread. Return to all comments →
Here's my short and sweet python solution. Enjoy. :)
def bonAppetit(bill, k, b): # Write your code here eaten: int = (sum(bill) - bill[k]) // 2 print("Bon Appetit" if eaten == b else f"{b - eaten}")
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 →
Here's my short and sweet python solution. Enjoy. :)