list [ list [ indices sum for index in range(len(list )sum +list [index]*list [indexprint(sumdealing with values from both lists at the same time we can approach this problem by running through the valid indices and looking up the corresponding values from each list in the body of the for loop