Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> def loop():
- ... i, j = 0, 0
- ... while i < 100:
- ... while j < 100:
- ... if terminate: break
- ... j += 1
- ... if j < 100: break
- ... i += 1
- ... print(i, j)
- ...
- >>> terminate = 0
- >>> loop()
- 100 100
- >>> terminate = 1
- >>> loop()
- 0 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement