How would I be able to find all the combinations between two sets of characters in python, kind of like a cartesian product, but I don't want there to be pairs but subsets of the combinations.
For example:
Let's say we have two sets with three elements
a = {"a", "b", "c"}
b = {"a", "b", "c"}
How would I get this output:
c = {{"a", "a"}, {"a", "b"}, {"a", "c"}, {"b", "a"}, {"b", "b"}, {"b", "c"}, {"c", "a"}, {"c", "b"}, {"c", "c"}}