How to Loop over Lists in Python

preview_player
Показать описание
How to loop over lists in Python. Learn Python basics with this Python tutorial for beginners.

Python Exercises for Beginners:

Python Cheat Sheet:

Want to learn more from me? Check out my blog and courses:

Рекомендации по теме
Комментарии
Автор

Hi Mosh, Which theme of vscode are you using?
Thanks for the videos!

aesposito
Автор

when i write the first list and make (alt + cuntol+e) i could not move to the second row with space in the second row but i move to the first

amgaddoumet
Автор

Thank you for your very simple video. It helped me to fix my problem very quickly. Thank you so much!!!!

genedenman
Автор

Thank you Mosh for the video! It was helpful for me.

tymothylim
Автор

Whenever i open the terminal by ctrl+` i can't get back to the output. It repeatedly opens terminal i don't get any output. I installed code runner bt every time i press ctrl+alt+ n it says code is already running.. How to fix that??

TanjinNMitu
Автор

How do you enumerate with a function instead of loop?

Dopeboyz
Автор

thx for the video, im learning python at school and trying to improve :)

matthieu_fulhaber
Автор

Before watching this video, I didn't know about "Enumerate" so I did the following :-D
letters = ["a", "b", "c"]
for letter in letters:
, {letter}")

I got the following result

0, a
1, b
2, c

Rajadahana
Автор

Hey i am having one question.. where i need to do these exercises

DeEditsz
Автор

Thank you for this video about lists, it helped me out to solve the problem I was stuck with, which result I uploaded on my own channel. I like your content, your explanation is very clear. I hope my own script can be as clean, if someone could give me some feedback, I would really appreciate it. Thank you!

pythonlucas
Автор

What if I want my list to be
1.a
2.b
3.c

cynthiahmulwo
Автор

Ok but, how do we do it without enumerate? It's somewhat incomplete.

nonyabusiness
Автор

letters = ["a", "b", "c"]
for index in range(len(letters)):
print(index, letters[index])

This will work too.... But it was great to know about enumerate function and unpacking.

riadasgupta
Автор

Thank you.
Please stop using the white phase out at the end of your videos they’re burning my retinas

maj
Автор

QUESTION: Kindly tell me the IDE that you are using i like it the way it shows every keyword with different color.

khalilsial
Автор

Bro i was losst in the first 30 seconds

chengxiaoshi