Apr-19-2022, 06:43 PM
I have 2 variables that have values like :
How can I create this in python ? Using list? array?
var1=cel01 var2=disktypeHD var1=cel02 var2=disktypeEF var1=cel03 var2=disktypeEF var1=cel04 var2=disktypeHDThese variables come from 2 FOR loops. like :
for cellname_from_phy in myrootphy.findall('cell'): v_cellname =cellname_from_phy.find('name').text #v_cellname1 = str(list(v_cellname.values())[0]) print(v_cellname) myrootcelldetail = ET.parse(filename_celldetail) myrootcelldetail = myrootcelldetail.getroot() for model_celldetail in myrootcelldetail.findall('cell'): v_model =model_celldetail.find('makeModel').textI mean, var1 is for each cel object I want to identify disktype where possible values are 2 only (HD or EF).
How can I create this in python ? Using list? array?