def set_to_tuple(s): t = tuple(sorted(s)) return (t)