0
I have a very basic basis that I would like to highlight the main words of each line of a prioritization list, example:
Groundwork:
Bom dia
que dia lindo
vamos embora
vamos chutar o dia
Prioritisation list: bom dia vamos lindo
Expected result:
Bom dia - Bom
que dia lindo - Dia
vamos embora - vamos
vamos chutar o dia - dia
I could find it with only one variable and not a list. Code:
texto = 'dia'
for lin in open(r"C:\Users\guilgig\Desktop\teste.txt"):
if texto in lin:
print (texto, lin)
Why "Good morning" has only "Good" outstanding if "day" also belongs to the prioritization list?
– Woss
Thank you for editing! then following the prioritization list because s need the most important so when he finds one of the words is already ok, but if there is a way showing all the words all right
– Gigliotti