Predict

Stacking Order

You can stack several decorators on one function. In which order do they wrap it?

def bold(f):
    def w():
        return "<b>" + f() + "</b>"
    return w

def italic(f):
    def w():
        return "<i>" + f() + "</i>"
    return w

@bold
@italic
def hello():
    return "hi"

print(hello())

What does this program print?