Increment dict value by inc, cap at limit. Modify in place.
Implement this function:
def increment_value_with_max_limit(d: dict, key: str, inc: int, limit: int) -> None:
Write the function only — the arguments are read for you and the return value is printed automatically.
This function changes its argument in place and returns nothing; the updated d is what gets printed.
Arguments arrive as one Python literal per line, in this order: d, key, inc, limit.
Input
{'score': 10}
'score'
5
100
Output
{'score': 15}