because you don't know how the language works...
else is not in if block
if you literally google 'for-else python', you'll get this very detailed explanation of what you saw
https://stackoverflow.com/questions/9979970/why-does-python-use-else-after-for-and-while-loops
In python when loop ends else works
Обсуждают сегодня