Created
October 20, 2022 06:23
-
-
Save RaMSFT/cecb01a815f5376ef148a5c20c827b51 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 flip_bool(bool): | |
if bool: | |
return 0 | |
else: | |
return 1 | |
print(flip_bool(True)) | |
print(flip_bool(False)) | |
print(flip_bool(0)) | |
print(flip_bool(1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment