- 2

How to solve for loop practice in phyton ?

It's too rough to handle with anyone help

4th Mar 2022, 9:24 AM
Harish R
7 Answers
+ 3
# Which details .. try X =[1 , 2 , 3] print(sum(x))
4th Mar 2022, 2:31 PM
SoloProg
SoloProg - avatar
+ 3
'''Harish R The solution given to youby SoloProg is a good one, but does not help you practice for loops. May I suggest''' x = [1,2,3] result = 0 for i in x: result += i print(result)
4th Mar 2022, 8:21 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Harish R Can you please provide more info. Which lesson Which task - details What you don't understand.
4th Mar 2022, 9:35 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
In 29.2 the practice
4th Mar 2022, 9:35 AM
Harish R
0
X =[1 , 2 , 3] Print(num[0]+num[1]) This outputs 3 If i use the same method in that I can't get the answer
4th Mar 2022, 9:37 AM
Harish R
0
Phyton for beginners
4th Mar 2022, 9:38 AM
Harish R
0
I need 29.2 not 29.9 please
4th Mar 2022, 2:18 PM
Harish R