MacBook Air MacOS Mojava (10.14.6) crashes when python turtle module is executed using python 3.8.5
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 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.
MacBook Air