+ 2

en python como sumo los numeros de una lista?

6th Aug 2020, 9:31 PM
nacho agost
nacho agost - avatar
6 Answers
+ 5
Puedes utilizar la funciĂłn "sum" y pasarle la lista como argumento. Ejemplo: result = sum(your_list)
6th Aug 2020, 9:34 PM
Luciano Curti
Luciano Curti - avatar
+ 1
Abhay jaja but google wasnot going to give me an exact answer. gracias Luciano Curti sos un kpo
6th Aug 2020, 9:40 PM
nacho agost
nacho agost - avatar
+ 1
De nada nacho agost !
6th Aug 2020, 9:47 PM
Luciano Curti
Luciano Curti - avatar
+ 1
Hay varias formas, puedes crear una funciĂłn ,un lado de repeticiĂłn y otras formas
6th Aug 2020, 10:33 PM
Gabriel Caldeira Bicalho
Gabriel Caldeira Bicalho - avatar
- 1
There is something called Google that I am sure you can access anytime for free!! Atleast do your own research and then ask something that you don't really understand
6th Aug 2020, 9:38 PM
Abhay
Abhay - avatar