LLD - Design — Splitwise (Expense Sharing)
Find the bug in this Expense class method:
class Expense:
def __init__(self, amount, paid_by):
self.amount = amount
self.paid_by = paid_by
def split(self, users):
share = self.amount / len(users)
for user in users:
user.balance -= share