by _never_k · 7y ago · 0 comments
When I hear people describe Python as simple and elegant, it feels like they're using a different language than the one I know.
The difference between split and join is kind of weird, I'll grant. I'm not sure why it was done that way.
`sort` is in place. You're telling an object to order itself: "hey you! Sort yourself!" `sorted` returns a copy of an object, but... sorted. You're asking for the sorted version of that thing.