Jan-10-2019, 01:10 AM
(This post was last modified: Jan-10-2019, 01:11 AM by blackknite.)
Hey folks. Im doing some online challanges, and I got some things that gets me confused a bit, could use some explanation!
The first one is this, I dont know what I did and why this even works?
Cheers.
The first one is this, I dont know what I did and why this even works?
is_divisible = lambda n,x,y : n % x | n % y == 0I've tried to change '|' for 'or' and 'and' to see which is equivalent of '|' but its none of that, so only '|' works.
Cheers.