Functions in Python: Introduction

Python 3.0+
  • 17 Videos | 2h 10m 36s
  • Includes Assessment
  • Earns a Badge
Likes 348 Likes 348
Explore how Python facilitates code reuse by using functions in this 17-video course, which shows learners how to define functions, learn passing arguments to functions, and returning values from functions. The functions you will examine change the state of the program, may have side effects, and have observable effects other than their return values. Since functions with side effects are hard to parallelize and use in a distributed environment, you will learn correct ways of returning values from functions. First, you will learn how to invoke functions by using both positional and keyword arguments. You will next work with positional input arguments in custom functions, and learn that these are required arguments, and how to order these arguments to invoke your function. You will next learn to use variable length arguments in defining custom functions. Finally, you will learn how keyword arguments or named arguments are a way to make the intent behind function invocation absolutely explicit, and help prevent bugs in programs that are especially hard to detect.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    recall and implement custom functions
    define, invoke, and name functions
    recall how functions work as objects
    define and invoke functions with input arguments
    reference global variables from within a function
    recall the characteristics of working with positional arguments
    return information from functions
    write functions with multiple return statements
  • return complex data types from functions
    specify keyword arguments while invoking functions
    recall nuances in invoking functions using keyword arguments
    specify default values for function arguments
    implement functions with *args variable length positional arguments
    combine positional and variable length arguments
    implement functions with **kwargs variable length keyword arguments
    recall characteristics of functions, input arguments, and return values

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 1s
    UP NEXT
  • Playable
    2. 
    Getting Started with Functions
    7m 52s
  • Locked
    3. 
    Working with Functions
    4m 39s
  • Locked
    4. 
    Functions as Objects
    7m 17s
  • Locked
    5. 
    Input Arguments - Invoking Functions
    7m 11s
  • Locked
    6. 
    Input Arguments - Referencing Global Variables
    9m 29s
  • Locked
    7. 
    Input Arguments - Using Positional Arguments
    8m 26s
  • Locked
    8. 
    Return Values - Functions
    8m 34s
  • Locked
    9. 
    Return Values - Multi-return Statements
    7m 9s
  • Locked
    10. 
    Return Values - Complex Data Types
    9m 42s
  • Locked
    11. 
    Keyword Arguments - Invoking Functions
    8m 37s
  • Locked
    12. 
    Keyword Arguments - Nuances
    5m 56s
  • Locked
    13. 
    Default Arguments
    9m 23s
  • Locked
    14. 
    Variable Length Arguments - *args Variable
    7m 44s
  • Locked
    15. 
    Variable Length Arguments - Combinations
    6m 36s
  • Locked
    16. 
    Variable Length Arguments - **kwargs Keyword
    5m 56s
  • Locked
    17. 
    Exercise: Introduction to Functions in Python
    6m 34s

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.