Skip to content

Instantly share code, notes, and snippets.

@yuitest
Last active November 18, 2024 11:51
Show Gist options
  • Save yuitest/459fd5debe5eb0b6fc8a4f4dd03d42d5 to your computer and use it in GitHub Desktop.
Save yuitest/459fd5debe5eb0b6fc8a4f4dd03d42d5 to your computer and use it in GitHub Desktop.
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