In python, how can you write a lambda function taking multiple lines. I tried
d = lambda x: if x: return 1 else return 2
but I am getting errors...