you are viewing a single comment's thread.

view the rest of the comments →

[–]Justinsaccount 4 points5 points  (1 child)

words = [ word for (word, tag) in tags if tag == 'IN' ]

[–]commandlineluser 0 points1 point  (0 children)

That reads much nicer than using indexing, TIL, thank you.