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?
Elif can be considered to be the abbreviation of ______.
Which statement is generally used as a placeholder?
Which is the most comfortable loop?
List the control structures in Python.
Write a note on the break statement.
Write a note on the range () in the loop?
Using if..else..Elif statement writes a suitable program to display the largest of 3 numbers.
Write a detail note on for loop?
Write a program to display all 3 digit odd numbers.
