1alphabet = ['a' , 'b' , 'c' , 'd' ]
2for letter in alphabet:
3 if letter == 'b' :
4 continue
5 #continues to next iteration
6 print( letter )
7for letter in alphabet:
8 if letter == 'b' :
9 break
10 #terminates current loop
11 print( letter )
12for letter in alphabet:
13 if letter == 'b' :
14 pass
15 #does nothing
16 print( letter )
1 1n = 5
2 2while n > 0:
3 3 n -= 1
4 4 if n == 2:
5 5 break
6 6 print(n)
7 7print('Loop ended.')
8