a = [('test', 'k'), ('jamy', 'k'), ('Park', 'h'), ('kick', 'p'), ('car',
    'k'), ('an', 'r'), ('rock', 'h'), ('see', 'k'), ('it', 'h'), ('an', 'o'
    ), ('works', 'p')]
How to perform search on a list of tuples