+1 vote
in Class 12 by kratos

Rewrite the following code after removing errors. Underline each correction and write the output after correcting the code:

class First():

def init (self):

print “first”:

class Second(object):

def init (self):

print “second” class Third(First, Second):

def init (self):

First. init (self):

Second. init (self):

print “that’* it”

t=Third()

t=Third()

1 Answer

+5 votes
by kratos
 
Best answer

class First():

def init (self):

print “first”

class Second(object):

def init(self):

print “second” class Third(First, Second):

def init (self):

First.init (self)

Second.init(self)

print “that’* it”

t=Third()

t=Third()

...