Lambda And Map Function In Python Syntax If Else Statement