# your code goes here req = [{'amount': 100}, {'amount': 20}, {'amount': 45}]soma = sum(i['amount'] for i in req)print(soma)
Standard input is empty
165
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!