break

breakΒ 
keywordΒ 
isΒ 
usedΒ 
toΒ 
breakΒ 
outΒ 
/Β 
getΒ 
out
Β 
ofΒ 
theΒ 
immediateΒ 
loop
Β 
andΒ 
executeΒ 
theΒ 
nextΒ 
statement.
while expression:
     if condition:
           break
           #breaks out of the loop
#executes statement outside the loop
word = input('Enter a word: ')
for letter in word:
    if letter in 'aeiou':
        print('Vowel found!')
        break

continue

PythonΒ 
skips
Β 
theΒ 
statementsΒ 
afterΒ 
theΒ 
continue
Β 
keywordΒ 
inΒ 
theΒ 
currentΒ 
iteration/cycleΒ 
ofΒ 
theΒ 
loop.Β 
TheΒ 
loopΒ 
doesΒ 
notΒ 
stop
.
while expression:
     if condition:
           continue:
           #skips next statements and goes back to check the condition and starts from line 1 again
for num in range(1,11):
    if num == 4 or num== 6 or num==8: #When num = 5, it's False
        continue
    print(num)