I'm sorry if a similar problem has been asked, I could not find it.
I need to check whether string_a contains all the characters from string_b including the non-unique ones.
Example 1:
... string_a = 'baba'
... string_b = 'baaa'
... <solution here>
False
Example 2 (returns True because now string_a has enough 'a's):
... string_a = 'ababa'
... string_b = 'baaa'
... <solution here>
True
I tried set() method but it only works if the characters of the strings are unique. So I have this:
... string_a = 'baba'
... string_b = 'baaa'
... return set(string_b) <= set(string_a)
True
I want it to be False because string_b has three 'a's and string_a only two.