Discussion :: Python MCQs
-
What is the output of the code shown below?class Truth:passx=Truth()bool(x)
Answer : Option B
Explanation :
If the truth method is not defined, the object is considered true. Hence the output of the code shown above is true.
Be The First To Comment