docs: def get_inventory_by_name(nme, character):
      """
      returns the inventory index by name
      """
  
      for ndx, sk in enumerate(character["inventory"]):
          #print("sk = ", sk, " , nme = ", nme)
          if sk["name"] == nme:
              return ndx
      return 0