Functions in Python: Working with Advanced Features of Python Functions
Python
| 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
-
2m 9s
-
7m 19sIn this video, find out how to call a function from within its body. FREE ACCESS
-
9m 25sDuring this video, you will learn how to implement terminating conditions and return values for recursive functions. FREE ACCESS
-
9m 46sIn this video, you will write simple programs that involve recursive calls. FREE ACCESS
-
9m 43sIn this video, you will learn how to use generator functions by using the yield keyword. FREE ACCESS
-
8m 55sIn this video, learn how to apply generators to create infinite sequences. FREE ACCESS
-
7m 11sDuring this video, you will learn how to define closures in Python. FREE ACCESS
-
8m 30sIn this video, learn how to create closures that have access to local state variables. FREE ACCESS
-
7m 2sIn this video, you will learn how to define decorators to modify code that already exists. FREE ACCESS
-
8m 31sIn this video, find out how to customize decorators that work with functions that have different numbers of input arguments. FREE ACCESS
-
3m 6sIn this video, you will chain multiple decorators that apply to the same function. FREE ACCESS
-
5m 14sAfter completing this video, you will be able to recall characteristics of recursion, generators, and closures. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.