If the loop exits as the result of a break, the else will not be executed
But in python 3.6.0 IDLE i am running a code which is neglecting the above statement. and printing the else statement even after the break commands is executed.
while count < 5: if count == 5: break print (count) count = count + 1 else: print ("It did not happen")
It did not happen