This is actually a Python Question but hoping someone can help me here. I want to compare two list and return certain values depending on the condition. I thought this would work, but doesn’t. Seem to fail at the if statement.
x= (1,2,3,4,5) y= (0,1,8,9,3) XV='a' YV='b' Outputlist =  for i in x: if i > y[i]: Outputlist.append(XV) else: Outputlist.append(YV)