Programming

Learn Python for Mathematics

Python taught through the mathematics you already know: arithmetic, names for values, and functions written the way you write f(x). Every program runs in your browser.

Free to start · adaptive placement finds your level · reviews timed to your own forgetting.

30 lessons in Python for Mathematics

Your first programPython as a calculatorFloor division and moduloNames for valuesChanging a valueFunctions you defineReturn or print?Several inputs, and functions inside functionsTrue or falsePiecewise rules with ifRepeat with forAdding up: Σ in codeRepeat until: whileLists: a sequence in one nameLoop over a listTwo names, one listA function that calls itselfWhy 0.1 + 0.2 is not 0.3Printing numbers wellTwo answers at onceSet-builder notation in codePutting things in orderSetsCounting with dictionariesThe math moduleRandomness on purposeClose enough: Newton's methodFunctions as inputsArrays: arithmetic on every numberProject: π three ways

Built to be understood — and remembered.

Every idea is taught with motivation and a worked example before the drills, and an FSRS spaced-repetition engine schedules each review for the day its model predicts you would forget it. A short placement check finds what you already know, so you start Python for Mathematics exactly where it's useful.

Related Programming subjects