finish tutorial tasks

This commit is contained in:
2024-06-25 07:47:52 +00:00
parent 1b3eba4657
commit 58c397501a
4 changed files with 13 additions and 6 deletions

View File

@ -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