Basic types (str, int, float, bool, None)

The building blocks of Python values; None means "no value".

Also called: None, str, int, bool

Domain
Languages
Type
Term
Source
General
Language
Python

Example

The price arrived as a str, so int() converted it before the calculation.

In code

name = "Marena"      # str
nights = 3           # int
rate = 2.5e6         # float
paid = False         # bool
note = None          # nothing yet
type(nights)         # <class 'int'>
int("42"), str(42)   # converting

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30