for in loop with break and continue
examples/loops/for_break_continue.py
txt = 'hello world' for cr in txt: if cr == ' ': continue if cr == 'r': break print(cr) print('done')
h e l l o w o done
txt = 'hello world' for cr in txt: if cr == ' ': continue if cr == 'r': break print(cr) print('done')
h e l l o w o done