Coding/Python Matlab

for... else... (nested loop break out)

smores 2022. 7. 26. 03:59

for i in range(10):
    for j in range(10):
        print(i,j)
        if i==5 and j==7:
            break
    else:
        continue
    break