Update t9.py

using a list as a key increases time of searching . Compromising one of the major advantages of a dictionary.