how to match list members in py3.x

Brian Oney brian.j.oney at googlemail.com
Sun Nov 25 11:35:54 EST 2018


On Sun, 2018-11-25 at 07:43 -0800, Muhammad Rizwan wrote:
> for each word in each line how can we check to see if a word is already present in a list and if it is not how to append that word to a new list

For your problem consider a set.
https://en.wikipedia.org/wiki/Set_theory

For the python syntax consider the py3 tutorial.
https://docs.python.org/3/tutorial/index.html

HTH




More information about the Python-list mailing list