Question #76

Python implements a ternary conditional operator.

Python implements a ternary conditional operator in the form of a if condition else b . In was added in version 2.5 in September 2003. It is worth noting that these conditionals are expressions, not statements. (mail.python.org/pipermail/python-dev/2005-September/05684...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵