23  Glossary

This is a somehow arbitrary compendium of explanations in layman words of terms that you will commonly find in the Python jargon.

Code
import pathlib

Standard library: All the modules that come with the python language out of the box. These are the so-called “batteries included”. For example, the modules pathlib or json. We can import these without need of installing anything else:

import json
import pathlib

Method: A function attached to an object. This means we can call the function using dot notation on the object like this:

mypath = pathlib.Path(".")  # Create object "mypath"
mypath.is_dir()  # Call the method (function) "is_dir"
True

API: This stands for application programming interface. That refers to the functionalities exposed to the user by a program. For example, which objects a user is supposed to instanciate, which methods this object will have, etc. This surface of contact between the user and the software is in contrast to the inner workings of the program which are not supposed to be understood or used by the user. Read more here.