Setting Default Values
standard_defaults(), where all of them have defaults, you can call them without any arguments because they have defaults, whereas if you have no defaults, you actually get NameErrors because—oh, wait, that’s not the right one,
01:29 So despite the fact that they have these default values with the equal sign in between, which makes them look like you might expect them to be keyword arguments, they’re still positional arguments in this case from Python’s perspective.
01:42 Yeah. The key distinction here is that for the function definition, they are parameters in the sense that the parameters are defined either as normal parameters—I think normal in this case is where they can be either a positional or keyword argument—but when you’re calling the function, you’re using either arguments or keyword arguments.
Become a Member to join the conversation.