""" func extractCities() open the file read one line to trash header create empty list for the cities for every line in the file split the line to get the city add the city to the list return the list """ def extractCities(): fin = open("IA_population_data.txt","r") header = fin.readline() allCities = [] for oneLine in fin: data = oneLine.split("\t") city = data[0] allCities.append(city) return allCities