What will be the output of the following Python code? def c(f): def inner(*args, **kargs): inner.co += 1 return f(*args, **kargs) inner.co = 0 return inner @c def fnc(): pass if __name__ == ‘__main__’: fnc() fnc() fnc() print(fnc.co) A. 4 B. 3 C. 0 D. 1 Answer Workspace Report Discuss Answer with explanation Answer: Option B Explanation The code shown above returns the number of times a given function has been called. Hence the output of this code is: 3 Workspace
Discuss about the question