Answer:
def a_check(d: dict, key: str):
if key in d:
value = d[key]
if 'a' in value:
print(value)
else:
print("a not found")
else:
print("a not found")
This function takes a dictionary d and a key key as inputs, and checks if the key exists in the dictionary. If it does, it gets the corresponding value and checks if the letter "a" is present in it. If it is, then the function prints out the value; otherwise, it prints "a not found". If the key doesn't exist in the dictionary at all, it also prints "a not found".
You can then call this function as follows:
d = {"this": "array", "that": "string"}
a_check(d, "this") # prints "array"
a_check(d, "that") # prints "a not found"
a_check(d, "those") # prints "a not found"