I edited this to specifics: see part B for specifics: updated agian, a dictionary does not work because it's values aren't' indexed. *''' I have a bunch of lists names that vary slightly. And rather than writing the code that manipulates these lists multiple times, how can I input the name of the list to open? so: (and the following IS NOT code:)
list1: txt_masterlist=[]
list2: img_masterlist=[]
list3: png_masterlist=[]
list4: vid_masterlist=[]
etc... for example, to find the cardinality of lists 1-4 i'd need: len(img_masterlist) but 4x for each uniquely named list. I could use a def with a .split('_')[1] to return the 2nd part of the name, but id how to call, a list. Hope this makes sense, really what I'm asking is how to return fstring as a variable name, and call this variable in code. Because then I could create list{i}. '''*
partB:
a=print('this is code')
how can I do this: in python, or via numpy. its just a folder structure. i just don't know how to create a listi where i∈R (all real numbers)
type(a,bi,ci,di)=these are all lists
a ⊃ bi
bi ⊃ ci
or specifically:
a ⊃ b1 b2 b3...
b1 ⊃ c1 c2 c3....
c1∋x
c2∋y
so y∈c2⊂b1⊂a != y∈c2⊂b2⊂a because b2 != b1
to do this in python i need to create listi=[]
its super important to note that ( c2 ⊃ b1 ) != ( c2 ⊃ b2) c2 != c2 (in name only)