alex27 (7) [Avatar] Offline
#1
With the sentence "Find textbooks with titles containing 'NLP', or 'natural' and 'language',or 'computational' and 'linguistics'.", there is 12 elements in the set, not 11 ?

In [1]: s="Find textbooks with titles containing 'NLP', or 'natural' and 'language',or 'computational' and 'linguistics'."

In [2]: s
Out[2]: "Find textbooks with titles containing 'NLP', or 'natural' and 'language',or 'computational' and 'linguistics'."

In [3]: len(set(s.split()))
Out[3]: 12

In [4]: import numpy as np

In [5]: np.arange(1, 12 + 1).prod()
Out[5]: 479001600