# Functions and debugging

[We've seen earlier](../chapter-09-packages/packages-basics.ipynb) how to use functions from Python libraries such as NumPy.

In this section, we will explore how to define **our own Python functions**, and why it's often **good practice** to write them. 
We will also learn a more powerful way for **debugging** within VS Code (as compared to using `print` statements).


```{figure} images/map-11-functions.svg
---
height: 400px
name:
---
```