#NEWLINE# def WhichRegion( s ) : #NEWLINE# #INDENT# 'If the given string contains a province name, return its region code.' #NEWLINE# for ( province , region ) in province_to_region . items ( ) : #NEWLINE# #INDENT# if ( province in s ) : #NEWLINE# #INDENT# return region #NEWLINE# #UNINDENT# #UNINDENT# return None