аририттика к значению в дикте -питоне
my_dict = {"foo": 1, "bar": 2}
my_dict["foo"] += 1
print(my_dict)
# my_dict = {"foo": 2, "bar": 2}
RicarHincapie
my_dict = {"foo": 1, "bar": 2}
my_dict["foo"] += 1
print(my_dict)
# my_dict = {"foo": 2, "bar": 2}