Comment on Python does support if-else in lambdas...parentComments−kaens17yAlong with the points other people have made, trueaction if condition else falseaction is marginally more clear than condition and trueaction or falseaction , at least to people who aren't used to seeing and/or used like that. A lot of people, especially newer programmers, aren't used to seeing and...or used for branching that directly.
Comments
Along with the points other people have made,
is marginally more clear than , at least to people who aren't used to seeing and/or used like that. A lot of people, especially newer programmers, aren't used to seeing and...or used for branching that directly.