Global Statement Needed Only to Assign

inventory = 10

def check_stock():
    return inventory

def restock(units):
    inventory += units
    return inventory

print(check_stock())
print(restock(5))

What happens when this runs?

A

It prints 10, then prints 0

B

It prints 10, then raises UnboundLocalError when restock(5) runs

C

It prints 10, then prints 15

D

It raises NameError on the very first line, before anything prints