Functions in Python: Gaining a Deeper Understanding of Python Functions

Python    |    Intermediate
  • 13 videos | 1h 25m 56s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 255 users Rating 4.6 of 255 users (255)
This 13-video course offers learners an in-depth exploration of Python functions, by focusing on nuances such as argument passing by value and reference, and local and global variables. In this course, you will examine how functions are first-class citizens in Python, as with other data types. You will examine how Python allows functions to be stored in variables, passed into other functions as arguments, and returned from functions as return values. Next, you will learn how to identify and apply differences between parsing arguments by value and reference. Examine how Python treats functions on par with other data types, a key attribute of a program seeking to support the functional programming paradigm; and learn how to work with use and throw functions by using lam das. This course then covers how lightweight functions for one-off use called lambda functions or anonymous functions play an important role in keeping Python code both succinct and readable. Finally, you will learn how to appropriately choose between local and global variables for use in your program.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Specify global and local variables in python
    Recall what it means to pass arguments by value
    Recall what it means to pass arguments by reference
    Work with the math and os modules in python
    Work with the random and datetime modules in python
    Pass functions as input arguments to other functions
  • Work with functions that accept any number of arguments
    Return functions from other functions
    Define and invoke lambda functions
    Define, invoke, and discard lambdas
    Use lamdas as an input to the built-in filter() function
    Describe global and local variable characteristics, argument passing techniques, first-class functions, and lambdas

IN THIS COURSE

  • 2m 6s
  • 9m 10s
    Upon completion of this video, you will be able to specify global and local variables in Python. FREE ACCESS
  • Locked
    3.  Argument Passing by Value
    8m 13s
    After completing this video, you will be able to recall what it means to pass arguments by value. FREE ACCESS
  • Locked
    4.  Argument Passing by Reference
    9m 45s
    Upon completion of this video, you will be able to recall what it means to pass arguments by reference. FREE ACCESS
  • Locked
    5.  Math and OS Modules
    8m 34s
    During this video, you will learn how to work with the math and os modules in Python. FREE ACCESS
  • Locked
    6.  Random and Datetime Modules
    3m 21s
    Learn how to work with the random and datetime modules in Python. FREE ACCESS
  • Locked
    7.  Functions as Arguments - Input Arguments
    7m 18s
    In this video, you will learn how to pass functions as input arguments to other functions. FREE ACCESS
  • Locked
    8.  Functions as Arguments - Variable Arguments
    6m 27s
    In this video, find out how to work with functions that accept any number of arguments. FREE ACCESS
  • Locked
    9.  Functions as Return Values
    5m 10s
    During this video, you will learn how to return functions from other functions. FREE ACCESS
  • Locked
    10.  Lambdas - Define and Invoke
    7m 24s
    In this video, you will learn how to define and invoke lambda functions. FREE ACCESS
  • Locked
    11.  Lambdas - Define, Invoke, and Discard
    8m 56s
    Learn how to define, invoke, and discard lambdas. FREE ACCESS
  • Locked
    12.  Lambdas - Filter() Function
    3m 50s
    In this video, you will learn how to use lambdas as an input to the built-in filter() function. FREE ACCESS
  • Locked
    13.  Exercise: Definining Python Functions
    5m 41s
    Upon completion of this video, you will be able to describe global and local variable characteristics, argument passing techniques, first-class functions, and lambdas. 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 621 users Rating 4.4 of 621 users (621)
Rating 4.5 of 226 users Rating 4.5 of 226 users (226)