# Track items and whether the player has them (True/False)
inventory = {"wand": True, "cloak": False, "map": True}

def show_inventory(bag):
    print("--- Your bag ---")
    for item, has_it in bag.items():
        status = "yes" if has_it else "no"
        print(f"  {item}: {status}")

def pick_up(bag, item_name):
    bag[item_name] = True
    print(f"You picked up the {item_name}.")

pick_up(inventory, "cloak")
show_inventory(inventory)
