Continue Statement in Python
continue: it is used to repeat the loop from updation part
Syntax: continue
program on continue statement
a=1
while a<50:
a=a+1
if a==25 or a==8 or a==18:
continue
print (a);
using for loop
for i in range(1,25):
if i==8 or i==18:
continue
print(i)
pass :
the pass statement can be used when a statement is required syntactically but the program requires no action.
Program on pass statement
a=1
while a<20:
pass
a=a+1
else:
print("After loop finished using pass");
For
More Explanation
&
Online Classes
More Explanation
&
Online Classes
Contact Us:
+919885348743
+919885348743