LLD - Design — Splitwise (Expense Sharing)
Identify the error in this code snippet that tries to update a transaction amount:
transactions = [{'id': 't1', 'amount': 100}]
transactions['t1']['amount'] = 150