What is nested control statement?
When we use multiple control flow tools it is called nested control statement.
When is the break keyword used?
When we want to exit the loop when a certain condition is met
Write a syntax using break loop
j=0
for i in range (5):
j=j+2
print('i=',i,'j=',j)
if j ==6:
breakThe answer is
i= 0 j= 2
i= 1 j= 4
i= 2 j= 6
It stops executing when the answer reaches 6 as the value for J