0

What is the use of continue statement

31st Oct 2019, 4:13 AM
Rahul Gajul
Rahul Gajul - avatar
4 Answers
+ 1
When code reaches to continue, it stops that iteration and goes to next step: for i in range (4): if i == 1: continue print (i) The above code outputs: 0 2 3
31st Oct 2019, 4:27 AM
Qasem
+ 1
31st Oct 2019, 4:47 AM
Qasem
0
That means it won't consider the iteration 2??
31st Oct 2019, 4:34 AM
Rahul Gajul
Rahul Gajul - avatar