Example of continue Statement Source Code :
nums = [1, 2, 3, 4, 5, 6, 7, 8]for n in nums :
if(n == 3) :
print("Skipped Element :", n)
continue
print(n)
Output :
1 2 Skipped Element: 3 4 5 6 7 8
for n in nums :
if(n == 3) :
print("Skipped Element :", n)
continue
print(n)
1 2 Skipped Element: 3 4 5 6 7 8