#NEWLINE# def has( data , sub_data ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( item for item in data if ( item == sub_data ) ) . next ( ) #NEWLINE# return True #NEWLINE# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# lists_and_dicts = list_or_dict ( data ) #NEWLINE# for item in lists_and_dicts : #NEWLINE# #INDENT# if has ( item , lists_and_dicts ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return False