Home
NOTE: I'm in the middle of upgrading the site. Most things are in place, but some things are missing and/or broken. This includes alt text for images. Please bear with me while I get things fixed.

Break Out Of A For Loop In Python

Break out of a for loop with ` break ` :

list = ['a', 'b', 'c']

for item in list:
    if item == 'b':
        break
~ fin ~