[issue37447] Nested For Loop in Python not working as Expected after cnt=2136

2019-06-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @pradnyan The break statement [0] only exits the for loop where it's present in this the one where y is involved so the outer loop involving x will continue to execute. So after every attempt where y = 0 the cnt value succeeds and breaks out of

[issue37447] Nested For Loop in Python not working as Expected after cnt=2136

2019-06-29 Thread Pradnyan
New submission from Pradnyan : I have come across very strange Python bug in nested for loops: See below nested for loop with range function and its not working as expected. It worked fine until cnt=2136 and start giving unexpected output after that. As per logic y value should get