Last active
December 15, 2015 15:39
-
-
Save kissgyorgy/5283586 to your computer and use it in GitHub Desktop.
the Boolean operations or and and always return one of their operands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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