EN
Python - built-in datatypes
0 points
In this article, we would like to show you built-in datatypes in Python.
Numeric types | int , float , complex |
Text types | str |
Boolean types | bool |
Sequence types | list , tuple , range |
Mapping types | dict |
Set types | set , frozenset |
Binary types | bytes , bytearray , memoryview |
Note:
You can check the data type using
type()
method.xxxxxxxxxx
1text = 'a'
2print(type(text)) # str