I have a program where I am keeping the statistics of objects in the game in a dict, like this:
Weapon = namedtuple("Weapon", ["owned", "damage", "price", "accuracy"])
weapons = {
    "fists":    Weapon(True, 2, None, 75),
    "knife":    Weapon(False, 4, 50, 95),
    "sword":    Weapon(False, 6, 100, 90),
    "pistol":   Weapon(False, 8, 250, 65),
    "rifle":    Weapon(False, 10, 500, 80),
    "rpg":      Weapon(False, 20, 1000, 100)
}
How would I edit The owned value from inside of a function?
 
     
    