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 - Python Tutorial
From the course: Complete Guide to Python for Data Engineering: From Beginner to Advanced
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Introduction to Python and data engineering3m 6s
-
Setting up your Python environment3m 9s
-
Explore the Google Colab worksheet4m 26s
-
Variables and data types5m 19s
-
Operators and expressions7m 7s
-
(Locked)
Control structures6m 58s
-
(Locked)
Functions6m 45s
-
(Locked)
Modules and packages5m 9s
-
(Locked)
String manipulation8m 12s
-
(Locked)
Error handling5m 25s
-
(Locked)
Solution: Conditions1m 18s
-
-
-
-
-
-
-
-
-
-
-
-