I am just a beginner in python and I want to know is it possible to remove all the integer values from a list? For example the document goes like
['1','introduction','to','molecular','8','the','learning','module','5']
After the removal I want the document to look like:
['introduction','to','molecular','the','learning','module']
To remove all integers, do this:
However, your example list does not actually contain integers. It contains only strings, some of which are composed only of digits. To filter those out, do the following:
Alternately: