Python Data type

A Data type is a classification of data/value stored in a variable. Data type may be mathematical, relational or logical operations.

By default, Python has following data types

Text types: str

Numeric Types: int, float, complex

Sequence Types: list, tuple, complex

Mapping Types: dict

Set Types: set, frozenset

Boolean Type: bool

Binary Tree: bytes, bytearray, memoryview

You can check the any data type using the type() function