Chapter 12: Problem 3
Python actually provides two ways to create variable parameter lists. The first, discussed in Section 12.1. Variable Parameter Lists. on page \(239,\) takes all the "extra" values passed to the function call, puts them into a tuple, and assigns that tuple to a parameter with a star (") in front of its name. The second takes any extra named parameters, puts them in a dictionary, and assigns it to a parameter with two stars \(\left("^{* *}\right)\) in front of its name. a) Find the description of this feature in the official Python documentation at http://www.python.org and give its URL. b) Write a short example to show how this feature works, along with \(100-150\) words of explanation. c) When should you use this feature, and why?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.