Given a list of dictionaries representing client transactions, write a script to aggregate the total spend per client. Each dictionary contains a client string and an amount number. Return a dictionary mapping each client to their total amount. Implement aggregate_spend(transactions) and return {} for an empty list.
client and amountclient is a non-empty stringamount is an integer or floating-point numberdef aggregate_spend(transactions):