L1=["toto","tata","titi","tutu"]

def test2 (liste2,a,b):
	for i in range (len(liste2)-1):
		if liste2[i] == a and liste2[i+1] == b:
			return True
			
	return False

print ( test2(L1,"tutu","tete"))
