C
Casey Hawthorne
Since there was talk of if-then-else not being allowed in lambda
expressions, the following is from "Dive into Python"
The and-or conditional expression trick from page 41 of "Dive into
Python"
Wrap the arguments in lists and then take the first element.
''
expressions, the following is from "Dive into Python"
The and-or conditional expression trick from page 41 of "Dive into
Python"
Wrap the arguments in lists and then take the first element.
a = ""
b = "second"
(1 and [a] or )[0]
''