How do You Convert a List of Strings into a Frozenset and Add it to a Set of Frozensets?
I have a variable with n words, separated by whitespaces. str.split()
returns a list
of these words, which is then converted to a tuple
with tuple()
, which is finally converted to a frozenset
and added to the set
of frozensets
. For some reason this returns: