Skip to content

References: Math and Arithmetic

  1. Wikipedia: Arithmetichttps://en.wikipedia.org/wiki/Arithmetic The foundational Wikipedia article covering the four basic operations, number systems, and the history of arithmetic. Provides background for why Python's operators behave the way they do with integers and floats.

  2. Wikipedia: Order of Operationshttps://en.wikipedia.org/wiki/Order_of_operations Explains PEMDAS/BODMAS rules that govern how arithmetic expressions are evaluated. Directly relevant to understanding why Python evaluates 2 + 3 * 4 as 14 rather than 20.

  3. Wikipedia: Modular Arithmetichttps://en.wikipedia.org/wiki/Modular_arithmetic Covers the mathematical concept behind Python's modulo operator (%). Useful for understanding remainder-based calculations, clock arithmetic, and why modulo is so widely used in programming.

  4. Python Crash Course by Eric Matthes (No Starch Press, 3rd ed.) Chapter 2 introduces Python's arithmetic operators, integer vs. float division, and expressions with clear, beginner-friendly examples. Recommended for students who want a printed reference alongside their browser-based labs.

  5. Python for Kids by Jason R. Briggs (No Starch Press) Covers arithmetic operators and expressions specifically for young learners, with humor and visual examples. The tone and target age range (10–12) align closely with this chapter's audience.

  6. Python Docs: Numeric Typeshttps://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex The official Python reference for int and float types, covering all arithmetic operators including //, %, and **. Authoritative source for exact operator behavior and edge cases like floor division with negative numbers.

  7. Real Python: Python Operatorshttps://realpython.com/python-operators-expressions/ Comprehensive tutorial covering every arithmetic operator, operator precedence, augmented assignment operators (+=, *=), and expression evaluation. Includes interactive examples and common beginner pitfalls.

  8. W3Schools: Python Arithmetic Operatorshttps://www.w3schools.com/python/python_operators.asp Quick-reference table of all Python operators with short, runnable examples. Ideal for students who want a fast lookup for operator symbols and their meanings without reading a long article.

  9. Programiz: Python Operatorshttps://www.programiz.com/python-programming/operators Step-by-step tutorial on arithmetic, assignment, and augmented assignment operators with worked examples and an embedded online runner. Covers operator precedence with a clear precedence table.

  10. Khan Academy: Intro to Python Fundamentals — Arithmetichttps://www.khanacademy.org/computing/intro-to-python-fundamentals Free, self-paced video lessons introducing Python arithmetic and expressions, designed for learners with no prior experience. Pairs well with this chapter's hands-on labs as a supplemental video resource.