Code:
def get_distances(filename):
opener = open(filename)
d = {}
while file.readline(opener) != '':
'''converts a file with cities and distances into a dictionary with values
of distances from one city to
def get_distances(filename):
opener = open(filename)
d = {}
while file.readline(opener) != '':
'''converts a file with cities and distances into a dictionary with values
of distances from one city to
#Main
def main():
array = [] #this would be the list, but what do i do with it?
choice = displayMenu()
while choice != '4':
import os, sys, string
import random
import math
t = tuple()
def linsearch(key, l):
count = 0
index = 0
t = tuple()
for i in l:
count += 1
if key == i:
t = (index, count)
return t
index += 1
def binsearch(key, l):
count = 0
low = 0
t = tuple()
high = len(l) -