Learn Python with Jupyter
About the Book
The aim of Learn Python with Jupyter is to help you develop computational thinking—that is, the way we think when coding–while learning to code in Python.
Learn Python with Jupyter includes thirty‐eight chapters, each paired with a Jupyter Notebook where you can play with the code explained in the text. The code is embedded in narrative to provide context and support memorization, and it is enriched with suggestions for code pronunciation. Chapters contain both theory exercises, to verify the understanding of concepts, and coding exercises, to learn by doing. Exercise solutions are shared in the community forum, where you can ask questions and propose alternative approaches. And at the end of each chapter, you will find recaps and “in more depth” sections, with suggestions, tips, and curiosities.
Learn Python with Jupyter is written in a simple and approachable style while remaining precise and detailed. Its content has been tested and refined over more than a thousand hours of one‐on‐one teaching with international students of various educational backgrounds.
Learn more about the book here:
GET THE BOOK!
PART 8: Functions
- Printing thank you cards
Function inputs - Login database for an online store
Function outputs and modular design - Free ticket at the museum
Input validation and output variations - Factorials
Recursive functions - How can I reuse functions?
Working with Jupyter Notebooks and Python Modules
(additional file: setup_database.py)
