Hi I am attempting to create 10 dictionaries without having to code them explicitly.
The names of the dictionaries will be: X0, X1, X2, X3 .... X9
The names of the dictionaries will be: X0, X1, X2, X3 .... X9
for x in range(11): a = str(x) dictionary_name = ('X'+a) dictionary_name = {}if i add type(dictionary_name) to the code it returns 'dict' However if i try to print one of the dictionaries print (dictionary_name) i get
Error:NameError: name 'X0' is not defined