SyntaxFix
Write A Post
Hire A Developer
Questions
Here's a quick example:
termList = [] termList.append(('term1', [1,2,3,4])) termList.append(('term2', [5,6,7,8])) termList.append(('term3', [9,10,11,12])) result = [x[1] for x in termList if x[0] == 'term3'] print(result)