I would like to learn an easier way to check all items in a list and look for repeated strings.
I'm currently doing this:
elif "azul" in fios[0] and fios[1] or "azul" in fios[1] and fios[2] or "azul" in fios[0] and fios[2]:
print("Corte o último fio azul")
My intention is to check if there is more than one "blue" within the wires list, the code is working, but I would like to make it more practical.