Re: [Tutor] A Python Newbie Requesting help with Lambdas, Filters, Maps, and Built-in Functions to solve problems for a List of Songs

2019-05-21 Thread Alan Gauld via Tutor
On 21/05/2019 14:30, Rahul Alawani wrote: > # 4. The longest song title in the entire songs list > def longest_title (songmix): > temp = max(songmix, key=lambda num: len(max(num['titles']))) > return list(map(lambda x: max(songmix, key=lambda num: > len(max(num['titles'])))['artist'], >

[Tutor] A Python Newbie Requesting help with Lambdas, Filters, Maps, and Built-in Functions to solve problems for a List of Songs

2019-05-21 Thread Rahul Alawani
Reposting a somewhat shortened version of my earlier ask based on a fellow user's feedback (thanks Alan G). I still think it's important to share/repeat some background. Admin/moderator, please feel free to delete my prior post. Thx. Hello Tutors! I am an ambitious Python newbie without any