keeping on with the question, why wont this code work for me using multiple inheritance:
never mind, understood i dont need to list the first class inside the second
class First(): def number_input(self): self.x = int(input("whats your first number?\n")) class Second(First): def result(self): self.z = self.x + 2 print(self.z) class Third(First, Second): def last_result(self): w = self.z + self.x print(w) obj = Third() obj.number_input() obj.result() obj.last_result()
never mind, understood i dont need to list the first class inside the second