Run
for x in range(2, 10): if(x==7): break print(x)
Output