Apr-19-2022, 08:28 PM
Will each cell have only 1 disk type? You could use a dictionary
cells = {}
cells = {} for ... cells[v_cellname] = v_modelOr if a cell can have multiple values.
cells = {}
for ... cells[v_cellname] = [model.find('makeModel').text for model in myrootcelldetail.findall('cell')]Be warned that I don't understand your code at all including what part of the code is "var1" and what part is "var2". My guess is var1 is v_cellname and var2 is v_model.