break
: Used to break from iteration/loop.continue
: Used to continue to the next iteration in loops.i = -1
my_list = [10, 20, 30, 40, 50, 60]
while i < len(my_list):
i += 1
# skip 0th index
if i == 0:
continue
# stop iteration at 4th index
if i == 4:
break
print(my_list[i]) # [20,30,40]