Skip to content Skip to sidebar Skip to footer

Python Turtle Module Causes Os X To Crash

I'm working through Think Python chapter 4, where they tell you to type the following to see if you have the turtle module: import turtle bob = turtle.Turtle() This is supposed to

Solution 1:

try and set the screen and mainloop

window = turtle.Screen()
    window.setup(width,height)
    whileTrue:
            window.update()
    window.mainloop()

Solution 2:

Try running the file in the terminal using the command:- $ python filename.py

I had the same issue and I was VS code extension Code Runner to run the python file, however, when I tried the terminal it worked and the mac OS was not crashing this time

Post a Comment for "Python Turtle Module Causes Os X To Crash"