total_by_category(transactions) where transactions is a list of dicts like {"category": "Food", "amount": 250}. Return a dict mapping each category to the sum of its transaction amounts.total_by_category([{'category': 'Food', 'amount': 250}, {'category': 'Travel', 'amount': 500}, {'category': 'Food', 'amount': 100}]){'Food': 350, 'Travel': 500}Sum amounts per category.
Use `collections.defaultdict(int)` or `.get()` accumulation, looping over transactions.