Skip to content
UPEEC

Python Data Types

Python's built-in types: numbers, strings, booleans and None.

Beginner
Comments 0

Every value in Python has a type you can check with type(x). The core scalar types are int, float, complex, str, bool and NoneType. Collections (list, tuple, dict, set) are covered under Data Structures.

Sub-topics (3)

Numbers in Python

int, float and complex — Python integers never overflow; floats follow IEEE 754.

Beginner♥ 0🔖 0💬 0

Strings in Python

Text is stored in immutable str objects with powerful slicing, methods and f-string formatting.

Beginner♥ 0🔖 0💬 0

Booleans and None

True/False drive conditions; None represents "no value".

Beginner♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.