def main() : global LIST global DICTIONARY words = setup() LIST = build_word_list(words) DICTIONARY = build_word_dictionary(LIST) def get_input() : function = input('what do you want to do ? ') if(function == 'dictionary') : dictionary(LIST,DICTIONARY) elif(function == 'test') : test(LIST,DICTIONARY) else : print('function not available') get_input() get_input()
def main() : global LIST global DICTIONARY words = setup() LIST = build_word_list(words) print(len(LIST)) DICTIONARY = build_word_dictionary(LIST) def get_input() : function = input('what do you want to do ? ') if(function == 'dictionary') : dictionary(LIST,DICTIONARY) elif(function == 'test') : test(LIST,DICTIONARY) else : print('function not available') print('the only functions avaliable are : dictionary and test',end='\n\n\n') get_input() get_input()