Basic Types
Reference document: https://docs.python.org/2/library/types.html
-
None
- NoneType
- The type of
None
-
bool
- BooleanType
- The type of the
bool
values True
and False
-
int
- IntType
- The type of integers (e.g. 1)
-
long
- LongType
- The type of long integers (e.g.
1L
)
-
float
- FloatType
- The type of floating point numbers (e.g.
1.0
)
-
str
- StringType
- The type of character strings (e.g.
'Spam'
)
-
unicode
- UnicodeType
- The type of Unicode character strings (e.g.
u'Spam'
)
-
tuple
- TupleType
- The type of tuples (e.g.
(1, 2, 3, 'Spam')
)
-
list
- ListType
- The type of lists (e.g.
[0, 1, 2, 3]
)
-
dict
- DictType
- The type of dictionaries (e.g.
{'Bacon': 1, 'Ham': 0}
)