# L-6 MCS 260 Mon 10 Sep 2007 : a mileage table # # A dictionary records the distance from Chicago # to 3 other cities. The result of a raw input # is key to query the distances in the dictionary. # Chicago = { 'Los Angeles' : 2047 , 'Miami' : 1237, \ 'New York' : 807 } city = raw_input('Give a city : ') print 'Chicago -', city , ':', \ Chicago[city] , 'miles'