Reviewing Python Datatypes

Briefly review the main data types in Python.

We'll cover the following

Review

Here is a review of the data types you learned:

Datatype Explanation
int Integer. A whole number.
float Floating point number. A number with at least one decimal place.
str String. Any type of text representation.
list A collection of things that are ordered and changeable.
tuple A collection of things that are ordered and unchangeable.
set A collection of things that is unordered and contains only unique values.
dict A collection that is unordered and unindexed. It has keys and values.
bool Boolean, meaning True or False.

The next section will put all of this information to use with your first program: FizzBuzz.

Get hands-on with 1200+ tech skills courses.