What Will Be The Output Of The Following Python Codep Pre #219
What will be the output of the following Python code?</p> <pre><code class="language-python"> class father: def __init__(self, param): self.o1 = param class child(father): def __init__(self, param): self.o2 = param >>>obj = child(22) >>>print "%d %d" % (obj.o1, obj.o2) </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Strings - Python Strings - Quiz No.2.