Comment on The Python IAQ: Infrequently Answered QuestionsComments−noahlt15yIt's also worth noting that, in Python 2.6 and higher, we DO have a ternary operator: x = 3 if foo() else 6
Comments
It's also worth noting that, in Python 2.6 and higher, we DO have a ternary operator: