"Is there a way to perform ""if"" in python's lambda",lambda x: True if x % 2 == 0 else False