Given a list of numbers, output their sum using for loop. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Given a list of numbers, output their sum using for loop.

I have tried the relevnat code and in lractice it gives answer but how can I print only one answer like the total of all numbers?

18th Jul 2022, 9:40 AM
Syed Anas
Syed Anas - avatar
6 Answers
+ 6
Don't put your code in the tags
18th Jul 2022, 9:42 AM
NEZ
NEZ - avatar
+ 4
You put the language in the tags
18th Jul 2022, 9:56 AM
Slick
Slick - avatar
+ 2
Syed Anas Here's a brief intro about tags ... https://code.sololearn.com/W3uiji9X28C1/?ref=app
18th Jul 2022, 11:51 AM
Ipang
0
Then what to put there?
18th Jul 2022, 9:44 AM
Syed Anas
Syed Anas - avatar
0
Arthur Le Floch Pls don't give finished code as answer, because it makes the OP skip the most important part of learning. Prefer giving hints for the OP to find the solution.
19th Jul 2022, 4:26 AM
Emerson Prado
Emerson Prado - avatar
0
Check out 27.1 and 28.1 in the Python Core course 🙃
19th Jul 2022, 6:50 AM
Arthur Le Floch