Functions in Python: Introduction
Python
| Beginner
- 17 videos | 2h 3m 6s
- Includes Assessment
- Earns a Badge
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 courseRecall and implement custom functionsDefine, invoke, and name functionsRecall how functions work as objectsDefine and invoke functions with input argumentsReference global variables from within a functionRecall the characteristics of working with positional argumentsReturn information from functionsWrite functions with multiple return statements
-
Return complex data types from functionsSpecify keyword arguments while invoking functionsRecall nuances in invoking functions using keyword argumentsSpecify default values for function argumentsImplement functions with *args variable length positional argumentsCombine positional and variable length argumentsImplement functions with **kwargs variable length keyword argumentsRecall characteristics of functions, input arguments, and return values
IN THIS COURSE
-
2m 1s
-
7m 52sAfter completing this video, you will be able to recall and use custom functions. FREE ACCESS
-
4m 39sFind out how to define, invoke, and name functions. FREE ACCESS
-
7m 17s
-
7m 11sLearn how to define and invoke functions with input arguments. FREE ACCESS
-
9m 29sTo reference global variables from within a function, use the "global" keyword. FREE ACCESS
-
8m 26sUpon completion of this video, you will be able to recall the characteristics of working with positional arguments. FREE ACCESS
-
8m 34sIn this video, find out how to get information back from functions. FREE ACCESS
-
7m 9sLearn how to write functions with multiple return values. FREE ACCESS
-
9m 42sIn this video, learn how to return complex data types from functions. FREE ACCESS
-
8m 37sAfter completing this video, you will be able to specify keyword arguments when invoking functions. FREE ACCESS
-
5m 56sUpon completion of this video, you will be able to recall nuances in invoking functions using keyword arguments. FREE ACCESS
-
9m 23sAfter completing this video, you will be able to specify default values for function arguments. FREE ACCESS
-
7m 44sIn this video, you will learn how to implement functions with variable length positional arguments. FREE ACCESS
-
6m 36sIn this video, you will learn how to combine positional and keyword arguments. FREE ACCESS
-
5m 56sFind out how to implement functions with variable length keyword arguments. FREE ACCESS
-
6m 34sAfter completing this video, you will be able to recall characteristics of functions, input arguments, and return values. 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.