Skip to content

Instantly share code, notes, and snippets.

@zenloner
Created April 10, 2013 03:37
Show Gist options
  • Save zenloner/5351592 to your computer and use it in GitHub Desktop.
Save zenloner/5351592 to your computer and use it in GitHub Desktop.
if else statement in a lambda
if a:
b
else:
c
# equivaltent expression
b if a else c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment