Skip to main content

Functions Practice & Exercises

To reinforce what you’ve learned in this section (defining functions, parameters, return values, scopes, and recursion), we have prepared two interactive Jupyter Notebooks:

Follow-Along Practice

Practice defining functions, default arguments, starred argument collections (*args/**kwargs), variables scopes, and recursion.💻 VS Code | 🚀 Colab | 📥 Download

Practice Exercises

Test your knowledge with hands-on exercises on bill formatting, average statistics unpacking, global variables, and recursive additions.💻 VS Code | 🚀 Colab | 📥 Download

What’s next?

Now that you know how to organize your code into files and folders, let’s learn about classes - Python’s way of organizing code and data together.

Classes

Object-oriented programming