I’ll give you one exercise at a time and adjust based on your answers. We’ll start by tracing a decorator, then work up to writing and debugging them.

**Exercise 1**

```python
def announce(fn):
    print("decorating")

    def wrapper():
        print("before")
        fn()
        print("after")

    return wrapper

@announce
def greet():
    print("hello")

print("ready")
greet()
greet()
```

What does this print, in order? After the decorated definition runs, what function does the name `greet` refer to?