RealWrastling@lemmy.world to Ask Lemmy@lemmy.world · 2 years agoWhat's a word you haven't heard used in years?message-squaremessage-square204linkfedilinkarrow-up1164
arrow-up1157message-squareWhat's a word you haven't heard used in years?RealWrastling@lemmy.world to Ask Lemmy@lemmy.world · 2 years agomessage-square204linkfedilink
minus-squaremodel_tar_gz@lemmy.worldlinkfedilinkarrow-up4·2 years agoJust remember that even though None is Falsy, an array of Nones is Truthy. Gets me every time. I fucking understand it logically (because the array itself exists) but damnit if I can make my lizard brain comprehend it while coding it.
minus-squareSkyhighatrist@lemmy.calinkfedilinkarrow-up3·2 years ago because the array itself exists More specifically it’s because the array isn’t empty.
Just remember that even though None is Falsy, an array of Nones is Truthy. Gets me every time. I fucking understand it logically (because the array itself exists) but damnit if I can make my lizard brain comprehend it while coding it.
More specifically it’s because the array isn’t empty.