I have a list of categories [A, B] and I want to Define multiple variables using a string for loop which is [A, B]. I was able to do it manually, however, it is not efficient especially if you have more than 2 categories. Could you please help me solve this issue? here is what i did
RGB_A = []
for i in range(1,numGeoPics+1):
    g = gs.DataFile ('Outdir/Filters/RGB/addcoord_A{}.out'.format (i))['value']
    RGB_A.append (g)
RGB_B = []
for i in range(1,numGeoPics+1):
    g = gs.DataFile ('Outdir/Filters/RGB/addcoord_B{}.out'.format (i))['value']
    RGB_B.append (g)
and here is what I want to do :
Categories = ['A','B']
for Category in Categories: 
    RGB_['Category'] (here how to loop over categories list ?) = []
    for i in range(1,numGeoPics+1):
         g = gs.DataFile ('Outdir/Filters/RGB/addcoord_'+ str(Category)  +'{}.out'.format (i))['value']
         RGB_['Category'] (here how to loop over categories list ?).append (g)
 
    