>From the example you gave, I was wondering if a dictionary might be a more suitable data structure: attr = { "gill-attachment" : ["a", "d", "f", "n"], "gill-spacing" : ["c", "d", "w"], "gill-size" : ["b", "n"] } print attr["gill-size"] John Hunter