Skip to content

Instantly share code, notes, and snippets.

@anandtripathi5
Created February 13, 2022 23:56
Show Gist options
  • Save anandtripathi5/698746b04a1e1dc6f3eee069654127cf to your computer and use it in GitHub Desktop.
Save anandtripathi5/698746b04a1e1dc6f3eee069654127cf to your computer and use it in GitHub Desktop.
Simple is better than complex
# c,a,b,d are some random variables
c = a and b or d
# or
if a:
c = b
else:
c = d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment