filmov
tv
Python interview question #29: The 'else' clause for 'for' loops

Показать описание
We all know what if-else is in Python. But for-else? What would an "else" clause do on a "for" loop?
You might get asked that at a Python job interview. And in this video, I lay it all out for you, explaining what "else" does, and (more importantly) when you would want to use it.
You might get asked that at a Python job interview. And in this video, I lay it all out for you, explaining what "else" does, and (more importantly) when you would want to use it.
Комментарии