I made a program  named as a title.py inside it used Inheritance , now I want to Extend the Parent Class in another program(file also) but having an Error lets check ,my code <br><br><br>1.first file title .py <br><br>class global Studentdatabase:<br>
    def __init__(self,name,age,standard,place,dateofbirth,sex):<br>        <a href="http://self.name">self.name</a>=name<br>        self.age=age<br>        self.standard=standard<br>        self.place=place <br>        self.dateofbirth=dateofbirth<br>
        self.sex=sex <br>        print &#39;Initalizing&#39;,<a href="http://self.name">self.name</a><br>    def tell(self):<br>        &#39;TELL DETAILS&#39;<br>        print &#39;NAME,AGE,STANDARD,PLACE,DATEOFBIRTH,SEX&#39;,<a href="http://self.name">self.name</a>,self.age,self.standard,self.place,self.dateofbirth,self.sex<br>
class Teacher(Studentdatabase):<br>    def __init__(self,name,age,standard,place,dateofbirth,sex,salary):<br>        Studentdatabase.__init__(self,name,age,standard,place,dateofbirth,sex)<br>        self.salary=salary <br>
        print &#39;name is &#39;,<a href="http://self.name">self.name</a> <br>    def tell(self):<br>        Studentdatabase.tell(self)<br>        print &#39;The salary is&#39;,self.salary <br>class Student(Studentdatabase):<br>
    def __init__(self,name,age,standard,place,dateofbirth,sex,marks):<br>        Studentdatabase.__init__(self,name,age,standard,place,dateofbirth,sex)<br>        self.marks=marks <br>        print &#39;The name&#39;,<a href="http://self.name">self.name</a><br>
    def tell(self):<br>        Studentdatabase.tell(self)<br>        print &#39;The marks is&#39;,self.marks <br>t=Teacher(&#39;Mr.sudhanshu&#39;,21,&#39;B.E&#39;,&#39;Jaipur&#39;,&#39;12/02/1986&#39;,&#39;MALE&#39;,21000)<br>
s=Student(&#39;Anirudh&#39;,19,&#39;Engineering&#39;,&#39;Delhi&#39;,&#39;12/3/1989&#39;,&#39;MALE&#39;,65)<br>members=[t,s]<br>for member in members:<br>    member.tell()<br>    <br><br><br><br>2.Now another file in which I want to extend that same parent class is here .First code running successfully but in another one having problem <br>
<br><br><br><br>&#39;This another source code will represent the new Entry of database&#39;<br>import title <br>class Newstudent(Studentdatabase):<br>    def __init__(self,name,age,standard,place,dateofbirth,sex,marks):<br>
        Studentdatabase.__init__(self,name,age,standard,place,dateofbirth,sex)<br>        self.marks=marks<br>        print &#39;The new data base has name of new students&#39;,<a href="http://self.name">self.name</a> <br>
    def tell(self):<br>        Studentdatabase.tell(self)<br>        print &#39;The marks of the student is&#39;,self.marks <br>        <br>s1=Newstudent(&#39;Rajiv&#39;,21,&#39;M.B.A&#39;,&#39;MUMBAI&#39;,&#39;12 JAN,1987&#39;,&#39;MALE&#39;,267)<br>
s2=Newstudent(&#39;VIKASH&#39;,22,&#39;M.B.A&#39;,&#39;DELHI&#39;,&#39;12 JAN 1985&#39;,&#39;MALE&#39;,234)<br>s3=Newstudent(&#39;SAURAV&#39;,23,&#39;B.TECH&#39;,&#39;BIHAR&#39;,&#39;12 JAN 1984&#39;,&#39;MALE&#39;,233)<br>
new=[s1,s2,s3]<br>for newstudent in new:<br>    newstudent.tell()<br><br><br><br>Now tell me that how I can extend it <br><br>regards <br>sudhanshu <br>:) <br><br>    <br><br><br><br><br>