Math for Programmers for Beginners / Chapter 1 — Working with Numbers (lessons 1–5) / Lesson 1

Reading Math Notation as Python

Time needed: about 11 min (estimate)

☆ Read later

You can try the opening of this lesson without an account.

Notation isn't scary once you can read it

Most of the symbols in machine learning formulas are code you've already written.

f(x) = 2x + 3 is a function definition, Σ is a for loop, and a subscripted x_i is a list element.

In this lesson, you'll build that lookup table for yourself.

editor.py

Tab indents. To leave the editor, press Esc, then Tab.

Create a free account to keep reading

With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.

Report a problem with this lesson

Log in to send a report.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.