Shady_Shiroe@lemmy.world to Programmer Humor · 1 year agoCall the Priestlemmy.worldimagemessage-square24fedilinkarrow-up197arrow-down16
arrow-up191arrow-down1imageCall the Priestlemmy.worldShady_Shiroe@lemmy.world to Programmer Humor · 1 year agomessage-square24fedilink
minus-squaredrowned Phoenician@feddit.delinkfedilinkarrow-up1·1 year agoFor more pythinic code, the considerate programmer will use the fact that 0 is falsy: if x % 2: print("odd") More confusion is more python
For more pythinic code, the considerate programmer will use the fact that 0 is falsy:
if x % 2: print("odd")
More confusion is more python