Built in Python Functions
Built in Python Functions
Below you will find a table that includes the built-in functions and methods we have
covered so far.
These are some common functions you’ll likely use frequently in your code.
Common Types
Function Description It Works On Examples
display() Very similar to print() but used most Practically all display(1)
often in Jupyter Notebook Python types display(’two’, True)
Remember, functions and methods are very similar but methods use the “dot” notation.
Function
or Method Description Common Types It Works On Examples
min() Returns the smallest Lists (of comparable types) min([1, 2.01, 3])
value in a list min([‘a’, ‘b’, ‘c’])
max() Returns the largest Lists (of comparable types) max([1, 2.01, 3])
value in a list max([‘a’, ‘b’, ‘c’])
Data Structure Functions & Methods
Lists and dictionaries have some useful functions and methods specific to them.
sum() Adds all the values in a list together List (of numerical sum([2, 4, 3, 1])
to get a total values)