Maximum value of a list according to another list in Python
Maximum value of a list according to another list in Python Question: I have two lists res2 and Cb. I want to print maximum value according to an operation as shown below but I am getting an error. I present the expected output. res2=[3, 4, 6] Cb=[[0,10,20,30,40,50,60]] for i in range(0,len(res2)): Max=max(Cb[0][res2[i]]) print(Max) The error …