finish tutorial tasks
This commit is contained in:
@ -35,7 +35,9 @@ def buyLotsOfFruit(orderList):
|
||||
Returns cost of order
|
||||
"""
|
||||
totalCost = 0.0
|
||||
"*** YOUR CODE HERE ***"
|
||||
for item in orderList:
|
||||
fruit, numPounds = item
|
||||
totalCost += fruitPrices[fruit] * numPounds
|
||||
return totalCost
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user