I faced with an inability of the inheritance of superclass attribute values. I have already called superclass constructor and now trying to check out the inherited values.
class base:
    def __init__(self, x):
        self.x = x
        print(self.x)
class derive(base):
    def __init__(self):
        print(self.x + 1)
print("base class: ")
b = base(1)                           <-- Creating superclass instance 
print("derive class: ")
d = derived()                         <-- Inheriting. Failure.
Why can't I do this? Should I pass the underlying object to the inheriting object explicitly in order to get x attribute?
 
    