29
A function is a saved block of code that you can use over and over. Think of it as a recipe for 'Pounded Yam' that you've written down in a book.
Instead of explaining how to pound the yam every time, you just say "Run the Pounded Yam recipe." In Python, we start functions with the word def.
Log in to add a comment.