Advertisements
Advertisements
प्रश्न
List the differences between break and continue statements.
Continue statement is used only in theloop statement.
अंतर स्पष्ट करें
Advertisements
उत्तर
| S. No. | Break | Continue |
| 1. | Break statement is used to terminate a block in which it exists. | Continue statement is used to move the control to the next iteration of the loop ignoring other statements. |
| 2. | Break statement can be used in switch-case as well as in loop statements. | Continue statement is used only in the loop statement. |
shaalaa.com
Control Structure
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
संबंधित प्रश्न
How many important control structures are there in Python?
Which is the most comfortable loop?
What is the output of the following snippet?
i=1
while True:
if i%3 ==0:
break
print(i,end='')
i +=1
What is the output of the following snippet?
T=1
while T:
print(True)
break
Which amongst this is not a jump statement?
Which punctuation should be used in the blank?
if<condition>_
statement-block 1
else:
statement-block 2
Write is the syntax of if..else statement?
Write a program to display.
A
A B
A B C
A B C D
A B C D E
Write a note on if..else structure.
Write a detail note on for loop?
