• RandomVideos@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    25 days ago

    Wouldnt that be an actual question?

    If the answer is no, the vampire is not able to come in

    If the answer is yes, the vampire is able to come in

    • stupidcasey@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      25 days ago

      It’s a paradox If he can come in he can come in if he can’t come in he can, But he can’t come in unless she says he can come in and she said he can come in conditionally if he in fact can come in.

      To put it another way:

      Condition 1: Entry is permitted on the grounds that Entry is permitted.

      Condition 2: Entry is permitted on the ground Entry is permitted.

      In Python:

      define Entry(permission):
         if Entry(permission) == True:
            permission = True
         else:
            permission = False
      Entry(False)