Python Break Statement with Nested For loop


Python Nested For loop with a break statement

Program
# a for loop will executed 3 time i.e from 1 to 3 # b for loop will executed 3 time i.e from 2 to 4 for a in range(1,4): for b in range(2,5): if(b==3): break; print("a="+str(a)+" b="+str(b))
Input
Output