Line 7: Edit the code to change the particle velocity to 4 in the x-direction.
particle.velocity = vector(4,0,0)
Line 10: Edit the code to change the particle acceleration to -1 in the x-direction.
Line 30: Add code to update the velocity of the particle based on its acceleration. Hint: Try to mimic line 27, but use “velocity” and “acceleration” instead of “pos” and “velocity”, respectively.
Line 22: Edit the code to get the particle to stop when its velocity is equal to 0. Hint: Make the while statement depend onparticle.velocity.x.