MacBook Air MacOS Mojava (10.14.6) crashes when python turtle module
MacBook Air MacOS Mojava (10.14.6) crashes when python turtle module is executed using python Python 3.9.0 (v3.9.0:9cf6752276)
from turtle import Turtle
laura = Turtle()
laura.color('red')
laura.shape('turtle')
When I execute the code above, a small python launcher appears and then, my MacBook either restarts, freezes until I restart it using the power button or displays a white screen with black lines (static screen) before restarting. I use IDLE 3.9 to type up the code, however when I run it using python launcher, it crashes as soon as laura = Turtle() is executed. However on another admin on the same MacBook, it does not crash or restart but works successfully.
Please advice me on how to fix this issue.
Thank you.