class pythonlab:
def __init__(self,firstname,lastname,marks):
self.firstname= firstname
self.lastname= lastname
self.marks= marks
self.email= firstname + lastname + '@pythonlab.com'
class developer(pythonlab):
pass
user1=pythonlab('Yash','Srivastava',96)
user2=developer('Mitra','Srivastava',83)
print("we have already defined the instances inside the constructor now lets call it to print values")
print(user1.email)
print("=====SHOWING INHERITANCE=====")
print('{} {}'.format(user1.firstname,user1.lastname))
print(user2.email)