Very simple program simulating simple harmonic motion in a vertical spring in python using the turtle module. Feel free to look at the code for any improvements or questions:
https://www.dropbox.com/sh/10xxv2fjjf...
Note - the white line is the equilibrium point where dl = mg/k (before an external force is applied)