Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active August 28, 2023 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/1f5d0d7328e2e49f0695323e6c210c3e to your computer and use it in GitHub Desktop.
Save mcsee/1f5d0d7328e2e49f0695323e6c210c3e to your computer and use it in GitHub Desktop.
virus = ['MERS', 'SARS']
vaccines = []
if vaccines:
print ("let's get vaccinated")
else:
print ("There are no vaccines yet. Keep researching")
if virus:
print ("There are some virus around. Take extra care")
else:
print ("You are free to get out. Not masks are necessary")
# equivalent
if not vaccines:
print ("There are no vaccines yet. Keep researching")
else:
print ("let's get vaccinated")
if not virus:
print ("You are free to get out. Not masks are necessary")
else:
print ("There are some virus around. Take extra care")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment