I am trying to create a new instance of a class in Python. I tried the solution here: Instances in python
But it didn't work. So, my main class I have
if __name__ == '__main__':
Tim = Person
movement = Person.walk()
Where "Person" is the name of the class that I want to create and instance of. It has methods that I want to use.
I keep getting this error though:
Undefined Variable:Person
I also tried declaring the class instance within the actual metho, not init, but I got the same error.
Any suggestions are welcome. thanks