First time here? Checkout the FAQ!
x
+1 vote
310 views
asked in Python Interview Questions by (1.4k points)  
  

1 Answer

0 votes
answered by (1.4k points)  

break allows loop termination when some condition is met and the control is transferred to the next statement. 

continue allows skipping some part of a loop when some specific condition is met and the control is transferred to the beginning of the loop 

pass used when you need some block of code syntactically, but you want to skip its execution. This is basically a null operation. Nothing happens when this is executed. 

Related questions

...