How to Pass an Argument in Python
Since a function definition can have several parameters, a function call may
also require several arguments. It means you can pass your argument to a
function in multiple ways. You can use either keyword argument or
positional arguments. In the latter, the argument must be of the same order
as your parameter, whereas, in the former, each argument comprises a
variable name and its equivalent value.
Do'stlaringiz bilan baham: