Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Defining Python Functions With Optional Arguments (Overview)

Defining your own functions is an essential skill for writing clean and effective code. In this course, you’ll explore the techniques you have available for defining Python functions that take optional arguments. When you master Python optional arguments, you’ll be able to define functions that are more powerful and more flexible.

In this course, you’ll learn how to:

  • Distinguish between parameters and arguments
  • Define functions with optional arguments and default parameter values
  • Define functions using args and kwargs
  • Deal with error messages about optional arguments

For more information on concepts covered in this lesson, you can check out Defining Your Own Python Function.


Sample Code (.zip)

2.7 KB

Course Slides (.pdf)

8.1 MB

Become a Member to join the conversation.