#----------------------------------------------------------------------------- # Break.py #----------------------------------------------------------------------------- # function main() ------------------------------------------------------------ def main(): L = [12, 16, 18, 24, 28, 32, 36, 39, 42, 68, 71, 76] for i in L: if i%2 == 1: # if the number is odd print(i, "is an odd number") # print it break # exit the loop early # end if print(i, "is an even number") # end for print(L) # break jumps here # end main() # closing conditional --------------------------------------------------------- if __name__=='__main__': main() # end