for x in []: def foo(x): break for x in [1, 2, 3]: pass else: break while True: pass else: break