Last active
November 18, 2024 11:51
-
-
Save yuitest/459fd5debe5eb0b6fc8a4f4dd03d42d5 to your computer and use it in GitHub Desktop.
This file contains 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
if False: | |
assert False | |
if True: | |
assert True | |
import random | |
if something := random.choice([True, False]): | |
assert something | |
while something := random.choice([True, False]): | |
assert something | |
while something := not random.choice([True, False]): | |
while not something: | |
assert something | |
for something in [True, False]: | |
anything = not something | |
try: | |
assert anything | |
except: | |
raise | |
else: | |
pass | |
finally: | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment