Code Room
Code reviewHard
Question
This account-debit code runs in a multi-threaded server. What's wrong?
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
def withdraw(account, amount): if account.balance >= amount: account.balance -= amount return True return FalseRun or narrate your approach, then ask the coach.