I have a list in Python defined as :
data=['multirislmtdl-endpoint-name-modelquality-12as', 'multirislmtdl-endpoint-name-dataquality-2342as']
From this list I want to fetch 'multirislmtdl-endpoint-name-modelquality-12as'
, but the problem is that I don't know this exact string, don't know the index.
The only thing I know is that the string could containt 'modelquality'
. So using the string 'modelquality'
, how can I fetch the 'multirislmtdl-endpoint-name-modelquality-12as'
from data list?