@@ -87,7 +87,7 @@ These are not commonly used except when writing library functions.
8787
8888## Exercises
8989
90- ### (a) A simple example of variable arguments
90+ ### Exercise 7.1: A simple example of variable arguments
9191
9292Try defining the following function:
9393
@@ -106,7 +106,7 @@ Try defining the following function:
106106
107107Notice how the parameter ` *more ` collects all of the extra arguments.
108108
109- ### (b) Passing tuple and dicts as arguments
109+ ### Exercise 7.2: Passing tuple and dicts as arguments
110110
111111Suppose you read some data from a file and obtained a tuple such as
112112this:
@@ -146,7 +146,7 @@ Stock('GOOG', 100, 490.1)
146146>>>
147147```
148148
149- ### (c) Creating a list of instances
149+ ### Exercise 7.3: Creating a list of instances
150150
151151In your ` report.py ` program, you created a list of instances
152152using code like this:
@@ -169,7 +169,7 @@ def read_portfolio(filename):
169169
170170You can simplify that code using ` Stock(**d) ` instead. Make that change.
171171
172- ### (d) Argument pass-through
172+ ### Exercise 7.4: Argument pass-through
173173
174174The ` fileparse.parse_csv() ` function has some options for changing the
175175file delimiter and for error reporting. Maybe you'd like to expose those
@@ -211,4 +211,4 @@ Now, try silencing the errors:
211211>> >
212212```
213213
214- [Next](02_Anonymous_function )
214+ [Contents](.. / Contents) \ | [Previous (6.4 Generator Expressions)](../06_Generators/04_More_generators) \| [ Next (7.2 Anonymous Functions) ](02_Anonymous_function)
0 commit comments