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)
Source:stackexchange.com