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?
Sign in to answer questions and track your progress
Sign In