You are viewing a single comment's thread. Return to all comments →
def bonAppetit(bill, k, b): # Write your code here total = 0 for i in bill : total += i actual = (total - bill[k]) // 2 ca = b - actual if ca == 0: print("Bon Appetit") else: print(ca)
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Bill Division
You are viewing a single comment's thread. Return to all comments →