What does this program print?

from Scope and namespaces
Python 3.14 intermediate 2 min

What does this program print?

Python
rate = 10

def quote():
    try:
        print(rate)
    except UnboundLocalError:
        print("unbound")
    rate = 5
    print(rate)

quote()
print(rate)
Open in playground
Report an error