Created
July 28, 2020 13:20
-
-
Save FerdinaKusumah/0b5d130b02170b4ffa8e45221054caba to your computer and use it in GitHub Desktop.
[Python] Ternary operator
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
"""Ternary operator""" | |
a = 5 | |
b = 10 | |
is_greater = False if a > b else True | |
# True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment