#the break statement, causes the loop to immediately terminate. seq = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] for i in seq: #define the condition if i == 5: break print(i) print('after the loop')
#the break statement, causes the loop to immediately terminate. seq = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] for i in seq: #define the condition if i == 5: break print(i) print('after the loop')