Using Lambda Function In Python Syntax If Else Statement