Understanding Python loops

preview_player
Показать описание


(Note: At times, the sound quality in this video isn't that great; my apologies.)
Рекомендации по теме
Комментарии
Автор

This, my friend, was very helpful! It helped to break it down and I feel like I am finally getting it!

In an instance such as this "for X in Y:" it helped me to see that Y is the object that it is trying to iterate and X can just be any variable you make up and is not dependent on anything else. That solidified when you assigned the variable in X a value then put it in the 'for' statement and it reassigned the value.

Thanks so much for doing this Reuven! I know others have had this question, but thanks for making this video the day after I asked you this very question!

Jared
Автор

Wish you would make more videos like this about the difficult topics in Python, I will be so glad and happy thank you so much

cletusclark
Автор

Coming from C++ what you said at 9:22 I so much concur. Even after more than 2 years in python it bugs me(pun intended). I sometimes do write a for loop like 10:23. But after your sane explanation it makes more sense to follow your methodology

thanks Reuven

amiteshsharma
Автор

Nice and clear explanation. Thanks Reuven!

elu
Автор

I love you man you are the best it's very clear to me now

cletusclark
Автор

Hope you figure out your sound issues.

CrapE_DM