Functions in Python: Working with Advanced Features of Python Functions
Python 3.0+
| Intermediate
- 12 Videos | 1h 26m 49s
- Includes Assessment
- Earns a Badge
This course explores advanced Python function topics such as recursion, closures, and using generator functions to generate sequences. In 12 videos, you will learn how to use decorators to add functionality to code; examine how recursion can be used to construct code to solve complex problems; and learn to write a terminating condition for a recursive function. Next, you will learn how to use an Iterator to respond to a built-in next () function. Learners will also examine closures, and how as functions they maintain their own lexical environment; and explore how closures are functions that can yield dramatic results in the distributed processing of code, and are widely used in the implementation of distributed processing frameworks. Then you will learn how to use generator functions to generate sequences. You will learn how sequences can iterated upon by other parts of your program. Finally, you will learn that using decorators offers simple ways of invoking higher-order functions.
WHAT YOU WILL LEARN
-
discover the key concepts covered in this courseinvoke a function from within its bodyimplement terminating conditions and return values for recursive functionswrite simple programs that involve recursive callsimplement generator functions using the yield keywordapply generators to create infinite sequences
-
define closures in Pythoncreate closures that have access to local state variablesdefine decorators to modify pre-existing codecustomize decorators that work with functions with different numbers of input argumentschain multiple decorators that apply to the same functionrecall characteristics of recursion, generators, and closures
IN THIS COURSE
-
1.Course Overview2m 9sUP NEXT
-
2.Recursion - Invoking Functions7m 19s
-
3.Recursion - Conditions9m 25s
-
4.Recursion - Calls9m 46s
-
5.Generator Functions9m 43s
-
6.Generators for Infinite Sequences8m 55s
-
7.Closures7m 11s
-
8.Closures and Local State8m 30s
-
9.Decorators - Code Modification7m 2s
-
10.Decorators - Customization8m 31s
-
11.Chaining Decorators3m 6s
-
12.Exercise: Advanced Features in Python Functions5m 14s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.