How many data types are there in python3?

there seem to be only six data types in python3 (strings, numbers, lists, dictionaries, tuples, collections), but I recently learned about the chapter on classes. 1 is an "instance" generated by class instantiation a data type?
2 are binary arrays and Boolean values considered data types?

Thank you!


there are six standard data types in Python3:

Number
String
List
Tuple
Sets
Dictionary
Of the six standard data types of

Python3:

:NumberStringTupleSets;
:ListDictionary 

in addition, you may also see bool type, complex type.


in addition, python3 has a unique bytes type


the official document is very detailed
python.org/3/library/stdtypes.html" rel=" nofollow noreferrer "> python built-in type

here is a brief list of directories:
4.4Numeric Types-int, float, complex
4.5Iterator Types
4.6Sequence Types-list, tuple, range
4.7Text Sequence Type-str
4.8Binary Sequence Types-bytes, bytearray, memoryview
4.9Set Types-set, frozenset
4.10Mapping Types-dict
4.11Context Manager Types
4.12Other Built-in Types

back to the question itself, you listed six commonly used categories, and the classes, instances, and Boolean values are in 4.12.

Menu