aritmetics à une valeur dans un dict python
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}