(Aug-22-2019, 06:15 AM)perfringo Wrote:>>> nums = [110, 201, 305] >>> min(nums, key=lambda num: num % 100) 201
I'm not understanding this part.. how this min works here? say for iteration 1, it will do like min([110,201,305],key=10).. is my understanding right. Please clarify me and why we need key here? I mess up
Also, how 201 is min when 110 is already there? I feel I'm over looking