#NEWLINE# def count_postal_codes( region ) : #NEWLINE# #INDENT# pcs = [ ] #NEWLINE# for city in region . get ( 'localities' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# pcs = ( pcs + region . get ( 'localities' ) . get ( city ) . get ( 'postal_codes' ) ) #NEWLINE# #UNINDENT# return len ( set ( pcs ) )