Data Types

Overview

In programming, data types are an important concept. Variables can store data of different types, and different types can do different things.

Python has the following data types built-in by default, in these categories:

TypeExample
Textstr
Numericint, float, complex
Sequencelist, tuple, range
Mappingdict
Setset, frozenset
Booleanbool
Binarybytes, bytearray, memoryview
NoneNoneType

In this section, we’re going to focus on strings, numbers, and booleans. Let’s get started!

Topics