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
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
+ 1
Slick
Thanks it's working
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
0
Slick
It has to show output like the sample output in the my question description
0
yup! just slide that print statement just outside the for loop



