QuestionQ68

VerifiedCoding Conventions, Best Practices, and Standardization

Examine the following snippet and choose the statement that most accurately describes it.

Question Image

Explanation

Python permits any valid identifier after * for a var-positional parameter and after ** for a var-keyword parameter. The names args and kwargs are conventional only; they are not required by the syntax. A var-positional parameter receives extra positional arguments as a tuple, while a var-keyword parameter receives extra keyword arguments as a dictionary.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!