About this course
In this Python Functions Advanced course, you will build on your existing knowledge of functions to create better, faster-performing functions in your code.
Over the course, you’ll learn how to make high quality functions by giving them docstrings and by making sure that they only do one thing. You will also learn how to make a function using the DRY principle, or “Don’t Repeat Yourself,” which helps you notice when you need to pull part of your code into a reusable function.
You will learn about how Python passes arguments to functions and the difference between mutable and immutable variables. And you’ll dig deep into context managers, and how to write your own context managers using decorators.
By the end of this courser, you’ll have a deep understanding of decorators: how they work, why they work, how to use them, and how to write decorators of your own. And you’ll have built skills and experience with writing advanced Python functions using clean, highly-efficient code.
By the end of this course, you’ll be able to:
- Learn the best practices for writing functions in Python.
- Learn how and when to use context managers.
- Learn how to use and create your own decorators.
Lessons in this course
Loading lessons.... |
---|
Thousands of learners have changed their careers with Dataquest
97%
Learners who recommend
Dataquest for career advancement
4.9 stars
Dataquest rating on
G2Crowd and SwitchUp
$30k
Average salary boost
for learners who complete a path
Join a community of 1M+ data learners on Dataquest
Sign up for a free account
Get access to hundreds of free lessons.
Choose a course or path
Start anywhere, from beginner topics to advanced concepts.
Learn with hands-on exercises
Learn with real data and build your experience.
Apply your skills
Create projects, build your portfolio, and build your career.