- 2
How to solve for loop practice in phyton ?
It's too rough to handle with anyone help
7 odpowiedzi
+ 3
# Which details .. try
X =[1 , 2 , 3]
print(sum(x))
+ 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)
+ 2
Harish R
Can you please provide more info.
Which lesson
Which task - details
What you don't understand.
0
In 29.2 the practice
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
0
Phyton for beginners
0
I need 29.2 not 29.9 please