Break Statement

break: it is used to terminate the loop
Syntax: break;

 Program on break statement

a=1
while a<50:
if a>25:
break
print (a);
a=a+1

 

 

For
Online Classes

Contact Us: 9885348743