Built-in Components
When writing efficient code in Python, start by using its built-in components and functions.
Examples of components include list, tuple, set, and dict. You can find a list of built-in functions online. Some important components to mention are
range, which generates numbers,
enumerate, which provides the index and item in a collection, and
map, which applies a function to a list. This allows you to apply functionality to list items.