For-Else: An Underused Python Statement

preview_player
Показать описание
In this video, we learn about else statements after for loops and what they do.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

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

The threading example was a good one for this

einfachnurbaum
Автор

Isnt this a great example of how explicit is better than implicit ? In my personal opinion, this just hurts readability rather than helps with it. But an interesting little easter egg nonetheless.

rihhard
Автор

but is there a way to do specific things when I break the loop manually?

okolol
Автор

This feature highlights how little Guido knew about language design when doing his little toy project aka Python :)

falklumo
visit shbcf.ru