I'm accessing a class from another Python file by importing it at the top of the file. The class looks something like this:
class Something(object):
a_dictionary = {1: 2, 3: 4, 5: 6}
def __init__(self):
stuff....
My question is how would I be able to access a_dictionary
from the other file. I can't seem to find how to access a dictionary not within a function in another file.
I'm a beginner in Python and I have looked everywhere to find this answer and I can't. I essentially need to be able to iterate through the above dictionary from the other file.