Discussion :: Python MCQs
-
What is the output of the code shown below?def mk(x):def mk1():print("Decorated")x()return mk1def mk2():print("Ordinary")p = mk(mk2)p()
Answer : Option D
Explanation :
The code shown above first prints the word "Decorated and then "ordinary. Hence the output of this code is:
Decorated
Be The First To Comment