How can I match two lists of letters without considering the order of letters appearance in that lists in Python
Eg: Think my first list is [\'a\',\'b\',\'c\',
[\'a\',\'b\',\'c\',
You could sort them:
In [1]: a = list('abcd') In [2]: b = list('bcad') In [3]: sorted(a) == sorted(b) Out[3]: True In [4]: a == b Out[4]: False