To specify keyword-only arguments when defining a function, name them after the argument prefixed with *. If you don’t want to support variable positional arguments but still want keyword-only arguments, put a * by itself in the signature.
#Python #pythonprogramming
Dec 9, 2022 · 5:08 PM UTC

