Implement p0 tutorial.

This commit is contained in:
2021-10-11 21:01:31 -04:00
parent a95016431f
commit cd948fe640
15 changed files with 165 additions and 159 deletions

View File

@@ -102,7 +102,7 @@ if __name__ == '__main__':
('shop2', 'shop3') : 1
}
fruitTown = town.Town(shops, distances)
print "Orders:", orders
print("Orders:", orders)
for price in (1, 3, 5, -1):
print "At gas price", price, "the best route is:", \
shopAroundTown(orders, fruitTown, price)
print("At gas price", price, "the best route is:", \
shopAroundTown(orders, fruitTown, price))