Here in this post, you will learn about Python functions. 1. A function is a block of code which only runs when it is called. 2. You can pass data, known as parameters, into a function. 3. A function can return data as a result.