Question
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
Was this answer helpful ?
The code shown above first prints the word "Decorated and then "ordinary. Hence the output of this code is: Decorated
Ordinary
Was this answer helpful ?
Submit Solution