Given a dictionary (hashmap) whose values are strings (words or short phrases), and two provided helper functions — an isValid(value) function and a convert(value) function — implement the following: 1. Base case: Check whether ALL values in the dict are valid using isValid. If every value is valid, apply convert…