Functions in Python: Working with Advanced Features of Python Functions

Python 3.0+    |    Intermediate
  • 12 Videos | 1h 31m 49s
  • Includes Assessment
  • Earns a Badge
Likes 274 Likes 274
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 course
    invoke a function from within its body
    implement terminating conditions and return values for recursive functions
    write simple programs that involve recursive calls
    implement generator functions using the yield keyword
    apply generators to create infinite sequences
  • define closures in Python
    create closures that have access to local state variables
    define decorators to modify pre-existing code
    customize decorators that work with functions with different numbers of input arguments
    chain multiple decorators that apply to the same function
    recall characteristics of recursion, generators, and closures

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 9s
    UP NEXT
  • Playable
    2. 
    Recursion - Invoking Functions
    7m 19s
  • Locked
    3. 
    Recursion - Conditions
    9m 25s
  • Locked
    4. 
    Recursion - Calls
    9m 46s
  • Locked
    5. 
    Generator Functions
    9m 43s
  • Locked
    6. 
    Generators for Infinite Sequences
    8m 55s
  • Locked
    7. 
    Closures
    7m 11s
  • Locked
    8. 
    Closures and Local State
    8m 30s
  • Locked
    9. 
    Decorators - Code Modification
    7m 2s
  • Locked
    10. 
    Decorators - Customization
    8m 31s
  • Locked
    11. 
    Chaining Decorators
    3m 6s
  • Locked
    12. 
    Exercise: Advanced Features in Python Functions
    5m 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.

YOU MIGHT ALSO LIKE

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE