my problem is as follows, i have an array named crave=['word1','word2','word3'....'wordx'] and i want to transform into ITEM=[['word1','word2','word3'],['word4','word5','word6'] etc]
i used the following code
buff=[['none','none','none']]
n=10
ITEM=[]
i=0
while 1>0 :
buff[0][0]=crave[i]
buff[0][1]=crave[i+1]
buff[0][2]=crave[i+2]
ITEM.insert(len(ITEM),buff[0])
i=i+3
if i>n:
break
but what i get instead is [['wordx-2','wordx-1','wordx'],['wordx-2','wordx-1','wordx'],['wordx-2','wordx-1','wordx']etc]
why does this happen ?:(