How To Write Lambda Function In Python