for loops are just while loops in disguise (beginner - intermediate) anthony explains #377

preview_player
Показать описание
a break from python today -- we show C-like for loops and how they are actually just while loops in disguise! I also show how to translate some while loops into for loops!

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

another video idea: for loops are just goto statements in disguise, where you can also explain why Python's for-else makes sense if you think of it in terms of if-else with a goto

sadhlife
Автор

ok this was actually pretty cool, not sure I'd use it day to day but doing such a conversion might make a good basic interview question

b_rk
Автор

Hello Anthony, could you go over python bytecode instrumentation

lm
Автор

would python executes code faster if FOR loop been converted to WHILE loop?

stefanAH