Last active
December 5, 2019 01:50
-
-
Save FerdinaKusumah/b0eb6470561700d608a0ed17726f4c2a to your computer and use it in GitHub Desktop.
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 = 15 | |
b = 12 | |
is_a_greater = False if b > a else True | |
print("Is a is greater than b ? {}".format(is_a_greater)) | |
# Is a is greater than b ? True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment