class One:
i = One.get(9)
@staticmethod
def get(val):
pass
I try to initialise the static variable using a static method, but the above code raises this error:
NameError: name 'One' is not defined
How can I initialise a static variable using a static method in Python?