© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
G. GutaPragmatic Python Programminghttps://doi.org/10.1007/978-1-4842-8152-9_2

2. The Function: Programs as a Series of Statements

Gabor Guta1  
(1)
Budapest, Hungary
 

“It is usual in mathematics—outside of mathematical logic—to use the word function imprecisely and to apply it to forms such as y2 + x. Because we shall later compute with expressions for functions, we need a distinction between functions and forms and a notation for expressing this distinction. This distinction and a notation for describing it, from which we deviate trivially is given by Church.”

John McCarthy et al.

The function is the simplest construct able to describe a behavior. Functions ...

Get Pragmatic Python Programming: Learning Python the Smart Way now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.