0

Help me with this python program

This is my code https://code.sololearn.com/cNLDXa3a5tqX/?ref=app Sample input 1 2 5 7 8 9 Sample output 3 12 17 Question add the given input till the user gives input and output the value in a single line

5th May 2021, 12:00 PM
Goku
Goku - avatar
5 Answers
+ 2
line 6: for __ in c: c is a list of two values that are ints. meaning, you can't use indexing with them. Just take away the indexing notation and the code will work https://code.sololearn.com/cC9U724YdB44/?ref=app
5th May 2021, 12:13 PM
Slick
Slick - avatar
+ 1
Slick Thanks it's working
5th May 2021, 12:39 PM
Goku
Goku - avatar
0
Slick Thanks ,when I run your code I got the added value with the first value, Is there any other way to get output without the first value
5th May 2021, 12:28 PM
Goku
Goku - avatar
0
Slick It has to show output like the sample output in the my question description
5th May 2021, 12:36 PM
Goku
Goku - avatar
0
yup! just slide that print statement just outside the for loop
5th May 2021, 12:36 PM
Slick
Slick - avatar