コード例 #1
0
ファイル: main.py プロジェクト: akash9182/GRE-final
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()
コード例 #2
0
ファイル: main.py プロジェクト: ironstein1994/GRE
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()