Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

break python

# Use of break statement inside the loop

for val in "string":
    if val == "i":
        break
    print(val)

print("The end")
---------------------------------------------------------------------------
s
t
r
The end
 
PREVIOUS NEXT
Tagged: #break #python
ADD COMMENT
Topic
Name
5+3 =