Unobi Training
Beginner Python • Core Fundamentals

Python Math for Beginners

Learn the core math concepts every beginner needs in Python. This lesson introduces integers, floats, type checking, casting, arithmetic operators, comparisons, order of operations, rounding, and a few practical real-world examples.

Level 1 Beginner Python fundamentals
Practical Examples Math you can use right away
Notebook Included Follow along in Jupyter

What you will learn

  • The difference between int and float
  • How to inspect values with type()
  • How to cast with int() and float()
  • How arithmetic and comparison operators work
  • Why order of operations in Python matches PEMDAS from school
  • How round(), abs(), min(), and max() help clean up results

Watch the Video Lesson

Follow along with the video, then download the notebook and run each example yourself.

Lesson Topics

This lesson keeps the focus tight on beginner math in Python so students can build confidence before moving into more advanced libraries and data work.

Numbers and Types

See how Python handles whole numbers and decimals, and why dynamic typing matters when values change.

Operators and Comparisons

Practice the core operators used in real code, from addition and division to equality and greater-than checks.

Practical Math Examples

Work through floating-point rounding, time conversion with floor division and modulus, and a quick even-or-odd check.

Covered in this class

  • Integers and floats
  • Checking type with type()
  • Casting values with int() and float()
  • Arithmetic operators: + - * / // % **
  • Comparison operators such as ==, >, and <
  • Order of operations (PEMDAS)
  • Built-in math helpers like abs() and round()

Why this matters

  • Math appears in automation, scripting, reporting, and data work
  • Understanding types helps prevent beginner mistakes
  • Rounding and casting make results easier to read and use
  • Floor division and modulus are useful for time and grouping logic
  • These concepts prepare students for loops, conditionals, and later math libraries
Example from the lesson: 75 minutes can be shown as 1.25 hours with regular division, or as 1 hour and 15 minutes using // and %.

Download the Playbook

Use the Jupyter notebook to review the examples, run the code yourself, and experiment with the values.

Math Notebook

Download the lesson playbook and work through the examples step by step.

Tip: Watch the video first, then open the notebook and change the numbers in each example. Small experiments are one of the fastest ways to get comfortable with Python math.

Keep Going

Once basic math makes sense, you are ready for variables, loops, data structures, and conditionals in the rest of the beginner series.