liveBook · Manning

Primitive data type

As explained in The Quick Python Book, Fourth Edition

A primitive data type is a fundamental, language-provided type for representing a basic value, rather than a composite of multiple values.

A primitive data type represents a basic value. Python’s built-in types include scalar values, such as numbers and Booleans, as well as richer structures. section 3.2

Examples show the contrast:

  • Integers, floating-point numbers, complex numbers, and Booleans are scalar examples; lists, dictionaries, and files are richer built-in types. section 3.1 section 3.2

Python values can be manipulated with operators, built-in or library functions, and methods belonging to their types. section 3.1

How The Quick Python Book, Fourth Edition covers it

How deep it goes
Surveys scalar examples and contrasts them with richer structures, leaving detailed treatment to later coverage.
Examples
Uses integers, floating-point and complex numbers, and Booleans as scalar examples, contrasted with lists, dictionaries, and files.
What it assumes
Assumes programming experience but requires no prior Python knowledge.
What you can do after
Understand how Python's built-in types range from scalar values to richer structures and how operators, functions, libraries, or methods manipulate them.
How it connects
Connects numeric and Boolean scalars with lists, dictionaries, files, and Python objects.

Also explained in

Compare how 6 books explain primitive data type →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Quick Python Book, Fourth Edition. The section links point to the parts of the book it draws on.