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'], > filter(l

[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

Re: [Tutor] A Python Newbie Requesting help with Lambdas, Filters, and Maps

2019-05-21 Thread Alan Gauld via Tutor
On 20/05/2019 20:43, Rahul Alawani wrote: > ...created a long problem statement for an interesting self-exercise.  > However, I might have gotten a tad bit too ambitious and need help. That's fine and we are here to help. However We are all volunteers and most of us have busy lives so don't r