# -*- coding: utf-8 -*- slovarchik={"nap":('North','south','east','west','down','up','left','right','back'), "verbs":('Go','stop','kill','eat'),"stopk":('The', 'in','of','from','at','it'), "suh":('Door','bear','princess','cabinet'),"chisla":(0,1,2,3,4,5,6,7,8,9)} first_word=('nap','North') second_word=('verbs','Go') three_word=('stopk','in') four_word=('nap','south') five_word=('nap','east') six_word=('nap','west') seven_word=('nap','down') eight_word=('nap','up') nine_word=('nap','left') ten_word=('nap','right') eleven_word=('nap','back') twelve_word=('verbs','stop') threeteen_word=('verbs','kill') fourteen_word=('verbs','eat') fivteen_word=('stopk','The') seventeen_word=('stopk','of') eigtteen_word=('stopk','from') nineteen_word=('stopk','at') twenty_word=('stopk','it') twenty_one_word=('suh','Door') twenty_two_word=('suh','bear') twenty_three_word=('suh','princess') twenty_four_word=('suh','cabinet') int_one=('int','one') int_two=('int','two') int_three=('int','three') int_four=('int','four') int_five=('int','five') int_six=('int','six') int_seven=('int','seven') int_eight=('int','eight') int_nine=('int','nine') O_int=('int','zero') sentence=[first_word,second_word] listik=[] def opening(): stuff=raw_input('>') words=stuff.split() ",".join(words) print words if words in slovarchik.itervalues(): print u'Все правильно!'