def is_leaf(cluster):
 return (len(cluster) == 1)

def is_leaf ( cluster ) : return ( len ( cluster ) == 1 )
test whether an object is a valid domain term: - is a list or tuple - with 3 elements - second element if a valid op .