The dict is modified in place (dicts are passed by reference not by value) so it does not need an assignment.

Although we can put a "return value" at the end of the function and use assignments if you like. The effect will be the same and assignments might feel 'more natural'.