def soma(x): total = 0 for i in x: total += i return totall1 = [3,7,1,90,2] print(soma(l1))
Standard input is empty
103
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!