name = 'hello' for x in name: print(x) if x == 'l': break #Exit the for loop else: print("== During the for loop, if there is no break, execute ==") name = 'hello' for x in name: print(x) #if x == 'l': # break #Exit the for loop else: print("== During the for loop, if there is no break, execute ==")