fork download
  1. # your code goes here
  2.  
  3. req = [{'amount': 100}, {'amount': 20}, {'amount': 45}]
  4. soma = sum(i['amount'] for i in req)
  5. print(soma)
Success #stdin #stdout 0.02s 9316KB
stdin
Standard input is empty
stdout
165