Skip to content

Commit 94ad71f

Browse files
authored
updates from Luis
1 parent 8ca9b45 commit 94ad71f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

source/modules/lesson08/assignment.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,20 @@ The layout of the csv will be something like this:
6767
*add_furniture* can be tested manually,
6868
as shown below.
6969

70+
The idea is for the single_customer() function to return a new function (with a fixed customer name and destination inventory file) that will add all items in a source file to the overall inventory under a single customer name. Internally, single_customer() should leverage add_furniture() by fixing the first two parameters.
71+
72+
7073
.. code-block:: python
7174
7275
from inventory import *
73-
add_furniture("invoice01.csv", "Elisa Miles", "LR04", "Leather Sofa", 25)
74-
add_furniture("invoice01.csv", "Edward Data", "KT78", "Kitchen Table", 10)
75-
add_furniture("invoice01.csv", "Alex Gonzales", "Queen Mattress", 17)
76-
77-
create_invoice = single_customer("Susan Wong", "SW_invoice.csv")
76+
add_furniture("rented_items.csv", "Elisa Miles", "LR04", "Leather Sofa", 25)
77+
add_furniture("rented_items.csv", "Edward Data", "KT78", "Kitchen Table", 10)
78+
add_furniture("rented_items.csv", "Alex Gonzales", "Queen Mattress", 17)
79+
create_invoice = single_customer("Susan Wong", "rented_items.csv")
7880
create_invoice("test_items.csv")
7981
82+
So, using create_invoice() will, in this case, add all items in test_items.csv to rented_items.csv under the name “Susan Wong”.
83+
8084
Submission
8185
----------
8286

0 commit comments

Comments
 (0)