demo_for_break.py:
fruits = ["apple", "banana", "cherry"] for x in fruits: print(x) if x == "banana": break
C:\Users\My Name>python demo_for_break.py
apple
banana