if value 0 then add 1 lambda python code example Example: if in lambda function python lambda x: True if x % 2 == 0 else False