def compare_features(needed_feature, current_feature):
 if (len(needed_feature) != len(current_feature)):
  return False
 for feature in current_feature:
  if (feature not in needed_feature):
   return False
 return True

def compare_features ( needed_feature , current_feature ) : if ( len ( needed_feature ) != len ( current_feature ) ) : return False for feature in current_feature : if ( feature not in needed_feature ) : return False return True
check two lists of seqfeatures agree .