First go to your text editor and click on termianl and after clicking on terminal click on the new terminal and write
pip install turtles
this will install turtle module in you system then right program program 1then it succesfully runs.
pip install turtles
this will install turtle module in your system then
use program 2 to run it successfully.