arr_test = ["thetung1","thetung2","thetung3"] title = "thetung" if title not in arr_test: arr_test.append(title)