91634/error-screen-attributeerror-turtle-object-attribute-screen
I am trying to code a python game (very inexperienced coder here) and am following instructions for the code. It is set up as the following currently: #-----import statements----- import turtle as trtl #-----game configuration---- trtl_color = "red" trtl_shape = "circle" trtl_size = "2" #-----initialize turtle----- trtl = trtl.Turtle() trtl.shape(trtl_shape) trtl.color(trtl_color) trtl.pensize(trtl_size) #-----game functions-------- #-----events---------------- wn = trtl.Screen() wn.mainloop() It gives me the error mentioned in the title and I have no idea how to fix it. May someone please help?
Hi, @There,
It requires a very simple hack to get over this error. Python is case sensitive.
Replace
wn = trtl.Screen()
with the following:
wn = trtl.screen()
I hope the trick will help you!! Let me know if it worked.!!
Hey @Nagya, replace wn.mainlopp() with turtle.mainloop() ...READ MORE
Hey @Nagya, replace python.Shape("Square") with the following: python.shape("square") Python is case ...READ MORE
Try this: data=pd.read_csv('/your file name', delim_whitespace=Tru ...READ MORE
Check your python version. Casefold is possible ...READ MORE
suppose you have a string with a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
Hey, @Mohammed, You are getting this error because ...READ MORE
Hey @TedTickles, Replace wn.update() with turtle.up ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.