How to catch integers in dictionary keys, most of them string, but some is integers that i need to remove.
I tried this:
def print_words(filename):
dict = create_dict(filename)
for key, val in sorted(dict.items()):
# Integer filter here!
# if not isinstance(dict.key, int) Something wrong here!
print '{1:^5}\t{0:<}'.format(key.encode('utf-8'), val)
return