Python dictionary has_key() method
Python Dictionary has_key() Method Description Python The dictionary method has_key() returns true if the given key exists in the dictionary, otherwise it returns false. Syntax has_key() method syntax is as follows: dict.has_key(key) Parameters key − This is the key to…