Learning Python
by Mark Lutz, David Ascher · Mark Lutz
An O'Reilly tutorial covering Python types, statements, functions, modules, and classes with exercises after each part. The second edition targets early Python 2, so language details are dated even though the core concepts still hold.
This link may earn us a small commission at no extra cost to you. Affiliate disclosure
More resources on Functions
javascript.info
JavaScript.info is a thorough, beginner-to-advanced JavaScript tutorial site with detailed explanations and practical examples of core concepts, including functions, scope, closures, and async/await. It also covers the DOM, browser APIs, and modern JavaScript features with hands-on code samples.
Logic and Set Theory
Learn functions within logic and set theory with this course by Richard Zach. Explore key concepts and principles now!
Stanford Encyclopedia of Philosophy - Set Theory
Joan Bagaria's peer-reviewed Stanford Encyclopedia of Philosophy entry surveying modern set theory: the ZFC axioms, ordinals and cardinals, the continuum hypothesis, forcing and independence results, large cardinals, and determinacy. Readers gain a map of the field's central questions and results.
MDN Web Docs - Functions
Mozilla's JavaScript guide chapter on functions: declarations, expressions, scope, closures, arguments, arrow syntax, and recursion. After reading it you can define functions, reason about scope chains, and choose between function forms in real code.
Python Official Tutorial - Functions
The Python tutorial's chapter on defining functions: def syntax, default and keyword arguments, arbitrary argument lists, lambda expressions, docstrings, and annotations. Working through it leaves you able to write and call Python functions correctly using the language's own reference wording.
Python Functions Tutorial
Corey Schafer's comprehensive tutorial on Python functions, highly recommended in r/learnprogramming.