Python Reference (The Right Way)
latest
Introduction
Definitions
Coding Guidelines
Fundamental Data Types
None
Numbers
Sequences
Mappings
Sets
Files
Built-In Functions
Comprehensions and Generator Expression
Container Data Access
Operators
Statements
Other Objects
Double Underscore Methods and Variables
Exceptions
Constants
Boilerplate
Glimpse of the PSL
Resources
Licence
Python Reference (The Right Way)
Docs
»
Fundamental Data Types
Edit on GitHub
Fundamental Data Types
¶
None
¶
None
Object that denotes the lack of value.
Numbers
¶
bool
True
and
False
Boolean values. Evaluate to 1 and 0 respectively.
int
Integer numbers.
long
Long integer numbers.
float
Floating point numbers.
complex
Complex numbers.
Sequences
¶
str
Strings of characters. Immutable.
`unicode`_
Unicode strings of characters. Immutable.
list
Indexed list of objects. Mutable.
tuple
Indexed list of objects. Immutable.
Mappings
¶
dict
Hash table for storing unordered key-value pairs. Mutable.
Sets
¶
set
Unordered list of unique objects. Mutable.
Files
¶
file
File objects.
Read the Docs
v: latest
Versions
latest
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.