Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

break

#break - terminates the loop and make it out of it.
p=0
for i in range(3,15,2):
    if i>9:
        print('hello world')
    else:
        p=p+i
        print(p)
        break
print('conclude')
 
PREVIOUS NEXT
Tagged: #break
ADD COMMENT
Topic
Name
3+5 =