I have the following list of strings :
exclude = ['eee', 'iii']
word = 'Iîïe'
if any(x in word for x in exclude):
#I want to be here !
You can use a third party package called
What Unidecode provides is a middle road: function unidecode() takes Unicode data and tries to represent it in ASCII characters (i.e., the universally displayable characters between 0x00 and 0x7F), where the compromises taken when mapping between two character sets are chosen to be near what a human with a US keyboard would choose.
from unidecode import unidecode ... if any(x in unidecode(word).lower() for x in exclude): ...