From the course: Complete Guide to Python for Data Engineering: From Beginner to Advanced

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Functions

Functions

- [Presenter] Imagine you are building a house. You could build it brick by brick or you could use pre-made sections to speed up the process. In Python, functions are like these pre-made sections, reusable piece of code that make your program more efficient and easier to manage. Let's learn more about the functions in Python. A functions in Python is a block of reusable code that performs a specific task. Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable. Creating a function in Python is simple. We use the def keyword followed by function name and parenthesis. Let's just move to our workbook and then see how we can create those functions. Now this time, let me create a one new notebook. For that, click on file, click new notebook. Here is your notebook. We can just simply come here and change the name, say functions…

Contents