Challenge 4: Increment Dictionary Values

In this challenge, you are required to increment values in a dictionary.

Problem Statement

Implement an updateAges function that receives ages dictionary and a number n and returns a new dictionary where each student is (n) years older.

Input

A dictionary

Output

Returns a copy of sorted ages where each student is n years older.

Get hands-on with 1400+ tech skills courses.