So I am wondering what is the most efficient and performant way to check whether or not a list of strings equals to another list of strings.
A list of strings equals to another list of strings if the following conditions are met:
The two lists must have the same length.
For each index of list
a, the lower case of the element located at the index equals to the lowercase of the element located at the same index in listb.
This is what I have come up with:
In [213]: a = ['AAA', 'BBB', 'CCC']
In [214]: b = ['aaa', 'bbb', 'ccc']
In [215]: a == b
Out[215]: False
In [216]: sum(s.lower() == b[i].lower() for i, s in enumerate(a)) == len(a)
Out[216]: True
Can anyone offer a better solution?