li1 = [['a','b','c'], ['c','d','e']]
li2 = [['c','a','b'], ['c','e','d']]
c = 1
for i in range(len(l11)):
if (sorted[li1[i]]!=sorted(li2[i]):
c = 0
if(c): k = True
else: k = False
How to write this in one line? Also how to use zip() to accomplish this?
What if li2 = [['a','c','b']]
? Using zip would return True but it should give a False.