Created
November 24, 2011 21:32
-
-
Save kitek/1392334 to your computer and use it in GitHub Desktop.
Short if in Python
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
# Short if in Python | |
usersOnline = p.count() - 1 if p.count() > 0 else 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment