Apply Lambda Function To List Python Definition Range