Is there a ternary conditional operator in Python?

I'm reading this article, hereย and want to know ifย a ternary conditional operator available in Python?ย 
avatar syedmubashshirhasan

@syedmubashshirhasan

2 Kontribusi 1 Poin


Jawaban

I guess something like this
value = a if a < b else b
avatar hilmanski

@hilmanski

2540 Kontribusi 2085 Poin


Login untuk gabung berdiskusi