• Ziglin (it/they)@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 days ago

    Why does not without a parameter return True? I’m starting to like the fact that I haven’t touched python in a while.

    • LostXOR@fedia.io
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      I think it’s because not() is equivalent to not(None), and since None is falsy not(None) returns True.