Question: I want to find out if one string is equal to at least one of the permutations of the other string.
For example, the output of the following two comparisons must be `true`:

```
print('united states of America' == 'America united states of')
print('united states of America' == 'states of united America')

```

I used the `itertools.permutations` method to find permutations, but
I want it for words not the sentence nor the letters in the string.

So not `'abcd' == 'bcad'` equals `True`, but `'a b c d' == 'b c a d'`
should be `True`.

Answer: 
You do not need `itertools.permutations`. Instead, compare *reordered* strings, with all words sorted:

```
def reorder_str(s):
    return " ".join(sorted(s.split()))

print(reorder_str('united states of America') == reorder_str('America united states of'))
# True

print(reorder_str('united states of America') == reorder_str('america united states of'))
# False

```
If `itertools.permutations` is not a must, I would use sets:

```
>>> set('united states of America'.split()) == set('America united states of'.split())
True
>>> set('united states of America'.split()) == set('America united states off'.split())
False

```