I'm looking for a way to get the number of elements of one set that appear in another set.
Given these two sets:
a = 'a b c d'
b = 'a b c e f'
a = set(a.split())
b = set(b.split())
This prints false:
print a.issubset(b) # prints False
Is there a pythonic way to instead print "3" since three elements of a appear in b?