Consider the function:
def hello():
return "Hello, world!"
Which of the following is the correct way to make a decorator that could be used to make hello() return "#Hello, world!#"?
Correct Answer: def hashes(fn): def wrapped(): return "#" + "#" return wrapped @hashes def hello(): return "Hello, world!"
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions