[Answer]-Python/Django: Issues assigning values to a list

1👍

images.append[step - 5] = image      
images.insert[step - 5] = image

are syntactically incorrect.

append() and insert() are functions. Use them like this (with parenthesis instead of brackets):

images.append(image)        
images.insert(step - 5, image)

Leave a comment