class neato:
def __init__(self):
self.dance = "I love to dance yadayaadadad!"
def main():
happyDance()
print(happy.dance)
def happyDance():
happy = neato()
main()
I would rather like to be able to reference my class objects module wide. This is a little experiment of that. Is there any way to do this? Currently, the code prints a name error.