Is str() a method or function?
The first Python lesson on "str()" (https://www.codecademy.com/en/courses/python-beginner-sRXwR/1/4?curriculum_id=4f89dab3d788890003000096) calls it a method:
"The Now let's look at str(), which is a little less straightforward. The str() method turns non-strings into strings!"
But the docs at https://docs.python.org/3/library/functions.html list it as a function.
I know that methods are just functions that are called using the attribute notation, and who knows how all this works under the hood.
The code required to solve this problem is:
What's the most correct way to refer to that code: method or function?