an argument preceded by an identifier (e.g.
name=
) in a function call or passed as a value in a dictionary preceded by**
. For example,3
and5
are both keyword arguments in the following calls tocomplex()
:complex(real=3, imag=5) complex(**{'real': 3, 'imag': 5})
Also see Asterisk in Python function arguments.
Bibliography
References
Python Documentation. n.d. “Glossary.” Python Documentation. Accessed February 8, 2023. https://docs.python.org/3/glossary.html.