python - Trying to understand Infinite Conditional white loop -


i have loop below conditional while , wondering how come ends being infinite loop.

count = 0             while count!=12 or count!=6:      count = count + 1     print(count) 

change or and, written condition true.

while count != 12 , count != 6:  

count cannot simultaneously 12 , 6, 1 of expressions true.

this expression can explained using de morgan's laws

enter image description here

in python be

not (p or q) == (not p) , (not q) 

Comments