Lesson goal: Routing a driving trip

Previous: Advice on quadratic equations | Home | Next: Coloring a map

Suppose you know some facts about pairs of cities and what roads directly connect then. Can you write some logic to give travel directions from city A to city B, even if A and B are not directly connected?

Now you try. Run the code as is, and change the goal to try getting directions between different city pairs.

Type your code here:

See your results here: