has_key() dictionary method

Python 2                                                   Python 3

a_dictionary.has_key(x)                               x in a_dictionary