I have a list that contains dictionary's and I want to add every third entry in that list into a new one The list looks like this:
result = [{"link": "example.com", "text": "Some description"}, {"link": "example2.com", "text": "lorem ipsum"}] ...
Right now the loop I have looks like this:
for i in range(0, len(list), 3):
cleanresults.extend(list[i])
but instead of copying the whole list it only adds the keys
["link", "text", "link", "text"]
What did I do wrong?