I keep on receiving the error: TypeError: unbound method get_num_students() must be called with Student instance as first argument (got nothing instead)
TypeError: unbound method get_num_students() must be called with Student instance as first argument (got nothing instead)
Her
When you define an instance method, put a self as the method's first argument, and when you use it, add self. in front of your instance variable.
self
self.
Like:
def get_num_students(self): print "There are %s students in this school." % (self.num_students)