Skip to content

Instantly share code, notes, and snippets.

@odonckers
Last active April 20, 2022 14:44
Show Gist options
  • Save odonckers/74852ffc118837482d5a86a777a102d0 to your computer and use it in GitHub Desktop.
Save odonckers/74852ffc118837482d5a86a777a102d0 to your computer and use it in GitHub Desktop.
Print 0...100 without numbers
def bool_to_int(bool_list):
return int("".join([str(int(x)) for x in bool_list]))
if __name__ == "__main__":
for i in range(bool_to_int([True, False, True])):
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment