Lambda Exercise In Python