demo_for_continue.py:
fruits = ["apple", "banana", "cherry"] for x in fruits: if x == "banana": continue print(x)
➜ begtut>python demo_for_continue.py
apple
cherry