Chapter 5. Numbers

Chapter Topics

  • Introduction to Numbers

  • Integers

    • (Plain) Integers

    • Long Integers

  • Floating Point Real Numbers

  • Complex Numbers

  • Operators

  • Built-in Functions

  • Related Modules

In this chapter, we will focus on Python's numeric types. We will cover each type in detail, then present the various operators and built-in functions which can be used with numbers. We conclude this chapter by introducing some of the standard library modules which deal with numbers.

Get Core Python Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.