You should share your code so others can see what you did and what the mistake was.
Normally, you'd use the Python append() method as described here.