Skip to content

Instantly share code, notes, and snippets.

@kissgyorgy
Last active December 15, 2015 15:39
Show Gist options
  • Select an option

  • Save kissgyorgy/5283586 to your computer and use it in GitHub Desktop.

Select an option

Save kissgyorgy/5283586 to your computer and use it in GitHub Desktop.
the Boolean operations or and and always return one of their operands
# See: http://docs.python.org/2/library/stdtypes.html
>>> "alma" or "korte"
Out[1]: 'alma'
>>> "" or "barack"
Out[2]: 'barack'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment