Posts by Luciano Rocha • 1 point
1 post
-
0
votes7
answers49622
viewsA: How to add elements from a list and return the result as an integer?
Here’s the hint: lista=[1,4,10] def soma(lista): # somatorio de varios numeros de uma lista com for num=0 for c in lista: num+=c print(num) You can exchange the ending for return depending on what…
pythonanswered Luciano Rocha 1