lst1 = ["carro"]
lst2 = ["carroa", "carrooao"]
How do I check if the word in lst1 exists in some substring of lst2. If there is a delete of the surplus characters of the word that has the substring, making the string in lst2 equal to that of lst1. Without using size comparison logics or just playing the right value in other variables . I need the character or substring to be identified to be deleted.
Expected result:
lst2 = ["carro", "carro"]