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

@ -30,7 +30,11 @@ def shopSmart(orderList, fruitShops):
fruitShops: List of FruitShops
"""
"*** YOUR CODE HERE ***"
return None
best_shop=fruitShops[0]
for show in fruitShops:
if best_shop.getPriceOfOrder(orderList)>show.getPriceOfOrder(orderList):
best_shop=show
return best_shop
if __name__ == '__main__':