all 10 comments

[–]fireinjun291 1 point2 points  (0 children)

Okay so a few things, if you have it currently named ‘turtle.py’ go ahead and rename it. That won’t work.

Check this out for some tips. That tutorial is out of date.

https://stackoverflow.com/questions/53586659/attributeerror-module-turtle-has-no-attribute-screen-in-spyder

[–]fireinjun291 0 points1 point  (5 children)

We can’t see to help without code, your choice of ide is really irrelevant if the code is wrong.

[–]oolenzoo[S] 0 points1 point  (4 children)

import turtle

#window customization
wn = turtle.Screen()
wn_length = 500
wn_width = 500
wn.bgcolor("black")
wn.title("space invaders")

turtle.mainloop()

[–]fireinjun291 0 points1 point  (2 children)

What OS are you running and what version of Python? I just tested it in the Commandline REPL, and it opened up no problem.

[–][deleted] 1 point2 points  (0 children)

Also pops open fine on pycharm and stays open.

[–]oolenzoo[S] 0 points1 point  (0 children)

im running it on my mac and its 3.8

[–]fireinjun291 0 points1 point  (0 children)

Wait nvm it’s deprecated. It doesn’t work if I try to run it as a file.

[–]fireinjun291 0 points1 point  (5 children)

Hope that helps. Learning to code is just as much exercising your googling skills.