This may not be the answer, but from what I could make out from the code & the question, this should help. Note the differences in your code & mine & make changes accordingly.
# Main Inventory
Inventory = createInventory()
# Populating given inventory aray with items to be used throughout the game.
def createItems(inv):
items = inv
items[1] = "Axe"
items[2] = "Gas"
items[3] = "keys"
items[4] = "gun"
items[5] = "note"
items[9] = "full"
# Check if the item passed to it is still in the inventory array
def checkItems(item):
items = Inventory
for i in range(len(items)):
if items[i] == item:
return "yes"
return "no"
def createInventory():
inv = range(11)
inv[10] = "made"
return inv
def stockInventory(item):
inv = Inventory
for i in range (11):
if inv[i] == 0:
inv[i] = item
break
return inv
def checkInventory(item):
inv = Inventory
for i in range(0, 11):
if item == inv[i]:
return "yes"
return "no"