class Student():
def Show_Books(self):return Library.show(self)
def Borrow(self):return Library.show(self),Library.__init__(self),Library.Remove(self)
def Return(self):return Library.__init__(self),Library.Append(self)
You are passing a
Student
object reference (
self
) to a
Library
method. But
Library
methods expect
self
to be a
Library
object. And since
Student
and
Library
are totally separate classes this will not work. You cannot do direct calls in that way, you need to redesign your code.