Lambda Cut Method In Geeksforgeeks Python