Answer
While defining the class B's initializer super().__init__() is not used, but the main function calls the variable i through an object of instance B, so it will give an error.
Work Step by Step
To use the variables of a super class via the subclass, we need to initialize the super class constructor by using super().__init__() in the subclass.