There are times when you want to either get out of a loop early or just skip that one loop and carry on with the rest of them. That's where break and continue are used.
When the program hits break it exits the loop and carries on with the rest of the program
for num in range(6):
if num == 4:
break
print(num)
print("Done")
will print:
1
2
3
Done
The loop procedes normally, printing the value of num until num is 4. The if statement becomes True and the program does the break line. This ends the for loop and the program gets to the print("Done") line.
Continue is similar to break but instead of ending the whole loop it just ends that one iteration of the loop and carries on with the next loop.
for num in range(6):
if num == 4:
continue
print(num)
print("Done")
will print:
1
2
3
5
6
Done
If you set up your loops carefully with the correct conditions you can often avoid needing to use break and continue, though they do have their uses in certain situations.