Implement p0 tutorial.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user