multiplicity

Test if set is a subset, considering the number (multiplicity) of each element in the set

Test if set is a subset, considering the number (multiplicity) of each element in the set Question: I know I can test if set1 is a subset of set2 with: {‘a’,’b’,’c’} <= {‘a’,’b’,’c’,’d’,’e’} # True But the following is also True: {‘a’,’a’,’b’,’c’} <= {‘a’,’b’,’c’,’d’,’e’} # True How do I have it consider the number of …

Total answers: 5