10.2.1 More Built-In Python Functions

Python has a number of built-in functions that perform some type of operation on the arguments you provide, and output a piece of new data. This new data can be saved in a variable for use in your program.

type() tells us if the data is a Boolean, str, int, or float:

Example #1

We already learned about str(), int(), and float().

We can find the number of characters in a string or number of items in a set of data using the len() function.

Example #2

Summary of Built-in Functions