Created
February 27, 2024 19:00
-
-
Save rongpenl/342974c2652f5cfd4efb2a4014eed4d8 to your computer and use it in GitHub Desktop.
dragon heads logic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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