- 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,

25th Apr 2017, 6:02 AM
Nguyễn Sự
Nguyễn Sự - avatar
14 Réponses
+ 20
list = [1, 2,3] for var in list: print(var)
2nd Jan 2018, 5:23 AM
nadarajan .A
nadarajan .A - avatar
+ 2
x=mylist.head while X!=None: print(x.data) x=x.next
16th Aug 2022, 3:20 PM
Tsion Hailye Tasew
Tsion Hailye Tasew - avatar
+ 1
list = [1,2,3,4,5] for i in list: print(i)
26th Apr 2017, 9:33 PM
Yusuf Malikul Mulki
Yusuf Malikul Mulki - avatar
+ 1
for of
27th Oct 2021, 8:30 PM
Brayan Steven Hinestrosa Garcia
Brayan Steven Hinestrosa Garcia - avatar
0
list = [1, 2, 3] for var in list: print(var)
26th Oct 2018, 8:10 AM
Houcem Eddine Aouissaoui
Houcem Eddine Aouissaoui - avatar
0
list = [1, 2,3] for var in list: print(var)
14th May 2019, 6:58 PM
Макс
Макс - avatar
0
list = [1,2,3,4,5] for i in list: print(var)
12th Dec 2019, 9:17 AM
Dahlia Silaen
Dahlia Silaen - avatar
0
list+[1,2,3] for var in list: print(var)
10th Nov 2020, 1:26 PM
festus
festus - avatar
0
for in var
10th Feb 2021, 11:55 AM
Md Momin Uddin Hridoy
Md Momin Uddin Hridoy - avatar
0
list = [1, 2,3] for var in list: print(var)
24th May 2021, 10:13 AM
Hayder Jawad Al-ATBEE
Hayder Jawad Al-ATBEE - avatar
0
Here is the solution: list = [1, 2, 3] for var in list: print( var )
26th Aug 2021, 6:16 PM
Owethu Sotomela
Owethu Sotomela - avatar
0
1. for 2. in 3. var
27th Aug 2021, 2:24 PM
PRINCE KUMAR
PRINCE KUMAR - avatar
0
Ahmed Raza Chandio Answer for of
5th Mar 2022, 12:08 PM
Ahmed Raza
Ahmed Raza - avatar
0
list = [1, 2,3] for var in list: print(var)
5th Sep 2022, 8:51 PM
Bharath Chandan Reddy Teegala