I'm trying to create an array of spheres in VPython, each with a manually entered position. Something like:
ball[0] = sphere(pos=vector(-1,4,9))
ball[1] = sphere(pos=vector(-2,6,6))
ball[2] = sphere(pos=vector(0,6,1))
etc. The problem is that I keep getting an error reading "IndexError: list assignment index out of range". How can I resolve this issue?