• Bumblefumble@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    10 months ago

    So this won’t do the intended thing if a is 0.

    Edit: Sorry I meant to reply to the parent comment, realising now you already write the exact same thing.

    • maegul (he/they)
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Actually not sure what you mean by this. By my reckoning, 0 is definitely falsy in Python such that a or b will evaluate to b if a is zero.