Posts by Gustavo Menezes • 11 points
1 post
-
-1
votes1
answer61
viewsQ: Function for Python Sum and Average
I am trying to develop these functions, when I type the numbers 1, 2, 3, 4 and 5, they return me the results 1 and 0,2. Can help me know what I’m doing wrong? def soma(lista): soma_lista = 0 for i…