Using Optional Arguments With Default Values
00:00 Using Python Optional Arguments With Default Values. In this section, you’ll learn how to define a function that takes an optional argument. Functions with optional arguments offer more flexibility in how you can use them.
00:15 You can call the function with or without the argument. And if there is no argument in the function call, then a default value is used.
00:25 So let’s get started by looking at how to assign default values to input parameters.
Become a Member to join the conversation.