What are the different Data Types in Python?

Different data types in python are:

  1. Text type: str
  2. Numeric types: int, float, complex
  3. Sequence types: list, tuple, range
  4. Mapping type: dict
  5. Set types: set, frozenset
  6. Boolean type: bool
  7. Binary types: byte, bytearray, memoryview