#NEWLINE# def is_plain_list( lst ) : #NEWLINE# #INDENT# '\n    Check if all items in list are strings or numbers\n    :param lst:\n    :return: boolean\n    ' #NEWLINE# for item in lst : #NEWLINE# #INDENT# if ( ( not isinstance ( lst , basestring ) ) and ( not isinstance ( item , ( int , long , float , complex ) ) ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True