DEV Community

Discussion on: Advanced Python: for more attractive code

Collapse
 
teosoft7 profile image
Taeho Jeon

Hi, you're welcome.

else: after for loop confirms the for loop is finished, not confirms the exit of the loop.

else: does not be executed when it is exited by 'break' statement.