- 1

Hw to add a number to the loop

2nd Aug 2019, 6:09 PM
Tharndekah Cleo Kurbherkah
Tharndekah Cleo Kurbherkah - avatar
4 odpowiedzi
+ 4
since you are taking 5 input I won't advice you to create 5 variables for that, you should probably use list which can hold 5 values, then add the values together using a loop for i in list then take each values and add em together, and check the for loop tutorial on SoloLearn
2nd Aug 2019, 6:53 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
which loop???
2nd Aug 2019, 6:36 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
For example lets say a question says create a puthon program that accepts five interger numbers as input from the user..the program shuld then add five numbers and print the sum as output wth the massage " the sum of the five integer values is "
2nd Aug 2019, 6:40 PM
Tharndekah Cleo Kurbherkah
Tharndekah Cleo Kurbherkah - avatar
0
I've been tryng to tackle this question for the whole day😢
2nd Aug 2019, 6:41 PM
Tharndekah Cleo Kurbherkah
Tharndekah Cleo Kurbherkah - avatar