The Python interpreter has a number of built-in functions and types that are always available. These are called built-in functions, and they can be used anywhere in your code, without the need of any importation.
Some of the built-in functions that we have already encountered in this book are as follows:
input([prompt]): This optionally prints the prompt to the terminal. It then reads a line from the input and returns that line.
print(): Prints objects to the text stream file or the terminal.
map(): Returns an iterator that applies a function to every item of the iterable, yielding the results.
For example, we recently used the built-in print() function to output results; the following is another simple demonstration:
print("Hello world")
This results in the following:
Hello world