It is an exam question:
Type in a function that will take in two arguments: a dictionary and a query. If the query is present in the dictionary, return t