Lambda Function In Python With If Conditional Grammar