Introducing Positional and Keyword Arguments
00:00 So I’ve got four functions here, and I’m loaded into an IPython interactive session. I have access to all these functions, and we’re going to just play around with them and call them with positional arguments, with keyword arguments, and see what happens.
and that works fine as well. You can’t do things like have a positional one after the keyword argument, and that’s nothing to do with this syntax exactly. It’s just, you can’t ever have a positional argument that is something without a keyword or a named argument that comes after. So what you maybe want to show here too, before we go into this, is how you would call the
standard() function with actual, just positional arguments because if—. Right.
And do you still call these positional arguments when you give them default values? How do you mean, call the values? Like, if I look at this
standard() function and that it is
x=1, like when I look at this, like up here—. Yeah.
Become a Member to join the conversation.