Skip to content

Instantly share code, notes, and snippets.

@FerdinaKusumah
Created July 28, 2020 13:20
Show Gist options
  • Save FerdinaKusumah/0b5d130b02170b4ffa8e45221054caba to your computer and use it in GitHub Desktop.
Save FerdinaKusumah/0b5d130b02170b4ffa8e45221054caba to your computer and use it in GitHub Desktop.
[Python] Ternary operator
"""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