Skip to content

Instantly share code, notes, and snippets.

@hassanuos
Created January 31, 2024 05:19
Show Gist options
  • Save hassanuos/5363404d51286c670405dba84c20d64f to your computer and use it in GitHub Desktop.
Save hassanuos/5363404d51286c670405dba84c20d64f to your computer and use it in GitHub Desktop.
bool_list = [False, True, False, False]
if any(bool_list):
print("At least one value should be true")
else:
print("All false")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment