r/CodingForBeginners • • 2d ago

math in coding

hello everyone im about to start learning to code (python specifically) and i want to learn the math i would need for it first to make the learning process a bit easier.

any pointers would be greatly appreciated

thx for the help

5 Upvotes

16 comments sorted by

View all comments

2

u/shailendra_codes 2d ago

Great news: to start learning Python, you do **not** need advanced math at all! Basic school-level arithmetic (`+`, `-`, `*`, `/`) and simple comparison logic (`>`, `<`, `==`) are more than enough to get started.

Here is the only math you actually need early on:

  1. **Basic Arithmetic & Percentages:** Addition, subtraction, multiplication, division, and remainder (`%` — useful for checking even/odd numbers).
  2. **Comparison & Boolean Logic:** Understanding `True`/`False`, greater than (`>`), less than (`<`), and `and`/`or` conditions.
  3. **Order of Operations (BODMAS/PEMDAS):** Knowing that multiplication/division happens before addition/subtraction.

You only need higher math (like linear algebra or calculus) much later if you decide to go into AI/Machine Learning or 3D game physics. Start coding right away—you will pick up the math naturally as you build small projects! 🙌