Built-in functions
Python comes with a lot of built-in functions. They are available anywhere, and you can get a list of them by inspecting the builtins
module with dir(__builtins__)
, or by going to the official Python documentation. Unfortunately, we don't have the room to go through all of them here. We've already seen some of them, such as any
, bin
, bool
, divmod
, filter
, float
, getattr
, id
, int
, len
, list
, min
, print
, set
, tuple
, type
, and zip
, but there are many more, which you should read about at least once. Get familiar with them, experiment, write a small piece of code for each of them, and make sure you have them at your fingertips so that you can use them when needed.
You can find a list of built-in functions in the official documentation, here: https://docs.python.org/3/library/functions.html.