Last active
April 20, 2022 14:44
-
-
Save odonckers/74852ffc118837482d5a86a777a102d0 to your computer and use it in GitHub Desktop.
Print 0...100 without numbers
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 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