def main(): """ Main driver to run program. """ hashmap = HashMap() text_file = open("AliceInWonderland.txt", "r", encoding="utf8") for line in text_file: temp = clean_line(line) for word in temp: if hashmap.contains(word) is True: tempvalue = hashmap.get(word) hashmap.set(word, (tempvalue + 1)) else: hashmap.set(word, 1) hashmap.print_top() text_file.close()