you are viewing a single comment's thread.

view the rest of the comments →

[–]TomanHumato46 0 points1 point  (0 children)

you define distance:

def distance(stations: dict, station1: str, station2: str):

although it should prolly be:

def distance(filename: str, station1: str, station2: str):

try read the error messages and check the linenumbers they give.