Python Program Using Lambda Functions