What Will Be The Output Of The Following Code?
def __init__(self, s):
self.s = s
msg = Test()
The program has an error because class Test does not have a constructor.
The above code produces an error because the definition of print(s) does not include .
It executes successfully but prints nothing.
The program has an error because of the constructor call is made without an argument.
© 2017 QuizBucket.org