Question: python check if value is key in dictionary?
Answer: has_key. The has_key method returns true if a given key is available in the dictionary; otherwise, it returns false. Syntax. See the syntax of the has_key method below: ... 
if - in statement. This approach uses the if - in statement to check whether or not a given key exists in the dictionary. Syntax.