Skip to content

Instantly share code, notes, and snippets.

@RaMSFT
Created October 20, 2022 06:23
Show Gist options
  • Save RaMSFT/cecb01a815f5376ef148a5c20c827b51 to your computer and use it in GitHub Desktop.
Save RaMSFT/cecb01a815f5376ef148a5c20c827b51 to your computer and use it in GitHub Desktop.
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