how to iterate a list including numbers in python? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

how to iterate a list including numbers in python?

how to iterate a list including numbers in python?

1st Jun 2021, 7:47 AM
Aryan King
Aryan King - avatar
5 Respostas
+ 3
Aryan King, There is still a need for clarification here, so we are all guessing. what do you mean by " ... including numbers..." it would be great if you could give us an input and an output sample. thanks!
1st Jun 2021, 2:01 PM
Lothar
Lothar - avatar
+ 1
for value in my_list: # do something with each value
1st Jun 2021, 7:48 AM
visph
visph - avatar
+ 1
Please avoid copying the question into the tags ā˜ https://code.sololearn.com/W3uiji9X28C1/?ref=app
1st Jun 2021, 8:14 AM
Ipang
+ 1
1.By usingĀ PythonĀ range() method. 2.ListĀ Comprehension. Ā 3.PythonĀ enumerate() method. 4.forĀ Loop. 5.whileĀ Loop. Ā 6.PythonĀ NumPy module. 7.lambda function. Visit https://www.askpython.com/python/list/iterate-through-list-in-python Hope this helps.
2nd Jun 2021, 2:17 AM
ā€Ž ąŗø
0
Plz tellšŸ˜­šŸ˜­
1st Jun 2021, 8:24 AM
Aryan King
Aryan King - avatar