I\'m having a hard time understanding how I should structure this piece of code. There are multiple nested loops that iterate through lists of parameters, performing operati