Skip to main content

Numbers in Python

Or atleast my understanding of them.1

In Python, numbers are not really a single object type, but a category of similar types.2

They include - Integer and Floating point objects - Complex numbers - Decimal: Fixed Precision Objects - Fractions - Sets - Booleans - Built-in functions (math, random)


  1. Post subject to revision as my understanding changes over time 

  2. Lutz, Mark. Learning Python (5th Ed)