You don't join things into a list. If you have one element you want to add, you
re.findall should return a list (of possibly identical items), so extending is I guess what you want...
.append()
it. If you have another list you want to tack onto the end you .extend()
it.re.findall should return a list (of possibly identical items), so extending is I guess what you want...
match = ["match1", "match2"] y = ["item1"] y.extend(match) print(y)
Output:['item1', 'match1', 'match2']