#NEWLINE# def get_answers( ) : #NEWLINE# #INDENT# ' load answer patterns from file ' #NEWLINE# answers = defaultdict ( list ) #NEWLINE# for line in fileinput . input ( ANSWERS_FILE ) : #NEWLINE# #INDENT# ( q_num , pattern ) = line . split ( None , 1 ) #NEWLINE# answers [ q_num ] . append ( pattern . strip ( ) ) #NEWLINE# #UNINDENT# return answers