def discrete_attributes(domain):
 return [attr for attr in (domain.variables + domain.metas) if attr.is_discrete]

def discrete_attributes ( domain ) : return [ attr for attr in ( domain . variables + domain . metas ) if attr . is_discrete ]
return all discrete attributes from the domain .