fork download
  1. def soma(x):
  2.  
  3. total = 0
  4. for i in x:
  5. total += i
  6. return total
  7. l1 = [3,7,1,90,2]
  8.  
  9. print(soma(l1))
Success #stdin #stdout 0.01s 27712KB
stdin
Standard input is empty
stdout
103