I found the following line of code which I'm unable to google as it has a custom function. Can someone please explain this?
list.sort(key=lambda v: map(int, v.split('.')))
I know this sorts a list but I want to understand which sort is it and how it works.
"2.7.17", "3.9.5","3.10.0"it will sort them on major, minor, patch as you might expect. It's not robust and will fail on"3.10.0rc1".