+1 vote
in Python by
Read the Following program:

class book:  

    def __init__(a, b):  

        a.o1 = b  

   

class child(book):  

    def __init__(a, b):  

        a.o2 = b  

   

obj = page(32)  

print "%d %d" % (obj.o1, obj.o2)  

Which of the following is the correct output of this program?

i) 32

ii) 32 32

iii) 32 None

iv) Error is generated

Related questions

+1 vote
asked Jan 19, 2021 in Python by SakshiSharma
+1 vote
asked Jan 19, 2021 in Python by SakshiSharma
...