Asked • 03/13/19

Does Python have a ternary conditional operator?

If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?

1 Expert Answer


Zekka N. answered • 03/13/19

5 (4)

Java and Python Tutor, Also Knows Obscure Programming Languages

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.