Back Navigation Next Navigation Video 4: Variables & Expressions (page 4 of 7)

A few of the common data types are the following:

1. bool is a binary variable containing the value of True or False.
2. str is a string variable containing text values.
3. int is an integer variable containing whole numbers (positive, negative or 0). An int may not have a decimal component.
4. float is a digital representation of a real number. A float is a way of representing a number with a fractional component on a computer.

Everything in Python3 is an object so there are many classes such as list, tuple, dict, and range. We use the type() function to check the data type.