>>> text = (("Hi", "Steve!"), ("What's", "up?")) >>> [word for sentence in text for word in sentence] ['Hi', 'Steve!', "What's", 'up?'] # my version asd = [ row for row in list_of_rows for column in row if 'Fachdienst PF' in column ]
>>> text = (("Hi", "Steve!"), ("What's", "up?")) >>> [word for sentence in text for word in sentence] ['Hi', 'Steve!', "What's", 'up?'] # my version asd = [ row for row in list_of_rows for column in row if 'Fachdienst PF' in column ]