Name

break

Examples
for i in range(5):
    if i == 2: 
        break
print(i) # Prints 2
Description
Syntax
	for i in xrange(10):
	    statements
	    if (condition):
	        break

	while (i < 10):
	    statements
	    if (condition):
	        break
Related for
while
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License