I have a dict inside a dict:
{ \'123456789\': {u\'PhoneOwner\': u\'Bob\', \'Frequency\': 0}, \'98765431\': {u\'PhoneOwner\': u\'Sarah\', \'Frequency\': 0},
You are attempting to search for a key that is an integer:
phoneNumberDictionary[int(line)]
However, your dictionary is defined with your phone numbers as strings.
'123456789'
Thus, the key with integer 123456789 doesn't exist.
123456789