Functions in Python: Working with Advanced Features of Python Functions

Python    |    Intermediate
  • 12 videos | 1h 26m 49s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 301 users Rating 4.6 of 301 users (301)
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

  • 2m 9s
  • 7m 19s
    In this video, find out how to call a function from within its body. FREE ACCESS
  • Locked
    3.  Recursion - Conditions
    9m 25s
    During this video, you will learn how to implement terminating conditions and return values for recursive functions. FREE ACCESS
  • Locked
    4.  Recursion - Calls
    9m 46s
    In this video, you will write simple programs that involve recursive calls. FREE ACCESS
  • Locked
    5.  Generator Functions
    9m 43s
    In this video, you will learn how to use generator functions by using the yield keyword. FREE ACCESS
  • Locked
    6.  Generators for Infinite Sequences
    8m 55s
    In this video, learn how to apply generators to create infinite sequences. FREE ACCESS
  • Locked
    7.  Closures
    7m 11s
    During this video, you will learn how to define closures in Python. FREE ACCESS
  • Locked
    8.  Closures and Local State
    8m 30s
    In this video, learn how to create closures that have access to local state variables. FREE ACCESS
  • Locked
    9.  Decorators - Code Modification
    7m 2s
    In this video, you will learn how to define decorators to modify code that already exists. FREE ACCESS
  • Locked
    10.  Decorators - Customization
    8m 31s
    In this video, find out how to customize decorators that work with functions that have different numbers of input arguments. FREE ACCESS
  • Locked
    11.  Chaining Decorators
    3m 6s
    In this video, you will chain multiple decorators that apply to the same function. FREE ACCESS
  • Locked
    12.  Exercise: Advanced Features in Python Functions
    5m 14s
    After 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.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 101 users Rating 4.6 of 101 users (101)
Rating 4.4 of 90 users Rating 4.4 of 90 users (90)
Rating 4.5 of 226 users Rating 4.5 of 226 users (226)