---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-1-902791409a52> in <module>()
57 ObjectLists.sounds[5].play_sound()
58
---> 59 class Scale:
60 scales = [Scale.zv, Scale.newton]
61 screening = False
<ipython-input-1-902791409a52> in Scale()
58
59 class Scale:
---> 60 scales = [Scale.zv, Scale.newton]
61 screening = False
62 newtoncount = 0
NameError: name 'Scale' is not defined
Can't for the life of me figure out what this is about. The name 'Scale' is defined, however, the interpreter's never wrong. What am I missing?
EDIT: When I run:
class things:
poo = [things.roughage(), things.towels()]
@staticmethod
def roughage():
return('health')
@staticmethod
def towels():
return('dryness')
print(things.poo)
it raises a NameError; things is not defined.
However when I run:
class things:
@staticmethod
def roughage():
return('health')
@staticmethod
def towels():
return('dryness')
class holder:
poo = [things.roughage(), things.towels()]
print(holder.poo)
there's no error and output is as expected.