In a previous chapter I described how to use simple functions, and how to import functions from modules. This chapter is about how to write your own functions and modules.