I have several variables, each having a different use, which are declared in the following way:
a= defaultdict(list)
b= defaultdict(list)
c= defaultdict(list)
d= defaultdict(list)
e= defaultdict(list)
f= defaultdict(list)
#and several more such variables
With regard to this question, a list will not reduce the effort, as I need to use all these variables in different tasks (If I create a list, I will again have to declare each one of these variables by list indices, which is a similar effort)
Is there a way I can reduce the number of lines in declaring all these variables?