class Weapon:

    def __init__(self, owned, damage, price, accuracy):
        self.owned = owned
self.damage = damage
self.price = price
self.accuracy = accuracy

def flip_weapon_owned_value(self):
    self.owned = False if self.owned else True
print('\n', self.owned)
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)}
Editing dict values in a method