Jan-10-2019, 04:47 PM
Thx for replying!
Why its incomplete? If 'n % x' is not ==0 then returns 1 which is equal to True, otherwise its False, works for me in Python3.
Im still trying to figure out how exactly this 'binary OR' solved this, 'n % x == 0' should return value of 'True' or 'False' so its like '0001' or '0000' in binary I guess, and so the 'binary OR' copies one True to the both arguments if one is True, right? Feels like im missing something, but maybe its just that.
Why its incomplete? If 'n % x' is not ==0 then returns 1 which is equal to True, otherwise its False, works for me in Python3.
Im still trying to figure out how exactly this 'binary OR' solved this, 'n % x == 0' should return value of 'True' or 'False' so its like '0001' or '0000' in binary I guess, and so the 'binary OR' copies one True to the both arguments if one is True, right? Feels like im missing something, but maybe its just that.