Functional programming is a style that builds programs from functions that only compute: they take values in, give a value back, and change nothing else. Python is not a purely functional language, and does not try to be, but it borrows the best habits of the style, and they make code easier to test, to reason about and to run in parallel. This lesson introduces the two core ideas, purity and immutability, and how to keep side effects at the edges.
More lessons in Complete Python Programming