I have to check for multiple 'and' conditions in if Eg:
if (a[1]==b[1]) and (a[2]==b[2]) and (a[3]==b[3]) and (a[4]==b[4]):
can I do above using for loop in if, say something like
if (a[i]==b[i] for i in range(0,4)):
Above suggested won't work as it sets the condition as true even if one of them is true.
aandb?