Hello everyone,
In the context of this exercise,
https://www.codecademy.com/courses/learn-python-3/lessons/python-functions-dictionaries-cc/exercises/sum-values, it looks like order in the += statement of the function matters:
def sum_values(my_dictionary):
count = 0
for value in my_dictionary.values():
count += value
return count
If I change the order to value += count, I do not get the same result as when typing count += value.
Why is that?
Thanks in advance!