Skip to content

Instantly share code, notes, and snippets.

@rongpenl
Created February 27, 2024 19:00
Show Gist options
  • Save rongpenl/342974c2652f5cfd4efb2a4014eed4d8 to your computer and use it in GitHub Desktop.
Save rongpenl/342974c2652f5cfd4efb2a4014eed4d8 to your computer and use it in GitHub Desktop.
dragon heads logic
def head_1(statement: bool):
if statement:
return True
else:
return False
def head_2(statement: bool):
if statement:
return False
else:
return True
if __name__ == "__main__":
apple_is_read = True
print(head_2(head_1(apple_is_read) == True))
print(head_1(head_2(apple_is_read) == True))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment