Run
myList = [1, 5, 4, 9, 7, 2] for x in myList : if x == 9: break print(x)
Output