Created
June 21, 2019 20:54
-
-
Save eyaltrabelsi/c3b75365749887c42af2e093ca437542 to your computer and use it in GitHub Desktop.
Python tricks trenary operator
This file contains 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
>>> "Python ROCK" if True else " I AM GRUMPY" | |
"Python ROCK" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment