A primitive is a basic, built-in type that represents a kind of value. A type determines which values an object can have and which operations you can use with it. In Python, other object types can be built from combinations of five primitives. section 5.2
Python’s five primitive types are:
- Integers, floating-point numbers, Booleans, strings, and a type for the absence of a value. section 5.2
a = 1 b = 1.0
Compare the values: 1 is an integer, while 1.0 is a floating-point number. section 5.2
Integer values include 0, 5, and -4. You can use arithmetic such as addition and subtraction, then assign the result to a variable. section 5.2





