How sorted() is different from sort()


can someone explain what does 1. It comes before a list, instead of after as all built-in functions do. mean?

sorted([]) vs [].sort()? I think this example is explains it all? A function is called with an argument, so the function name is first

while a method is called on an instance, an as such, is after.

1 Like