- 5
Fill in the blanks to iterate over the list using a for loop and print its values.
Fill in the blanks to iterate over the list using a for loop and print its values. list = [1, 2, 3] var list: print( ) What is the value in the code above? Thanks,
14 Respuestas
+ 20
list = [1, 2,3]
for var in list:
print(var)
+ 2
x=mylist.head
while X!=None:
print(x.data)
x=x.next
+ 1
list = [1,2,3,4,5]
for i in list:
print(i)
+ 1
for of
0
list = [1, 2, 3]
for var in list:
print(var)
0
list = [1, 2,3]
for var in list:
print(var)
0
list = [1,2,3,4,5]
for i in list:
print(var)
0
list+[1,2,3]
for var in list:
print(var)
0
for
in
var
0
list = [1, 2,3]
for var in list:
print(var)
0
Here is the solution:
list = [1, 2, 3]
for
var
in
list:
print(
var
)
0
1. for
2. in
3. var
0
Ahmed Raza Chandio
Answer
for of
0
list = [1, 2,3]
for var in list:
print(var)