'AttributeError: module 'turtle' has no attribute 'screen'
I am very new to python and I tried to import turtle from python and execute the following command:
import turtle
screen = turtle.screen()
screen.bgcolor("green")
screen.title("Drawing lines practice")
when I tried to execute the code, it gave me the following error:
line 3, in <module>
screen = turtle.screen()
AttributeError: module 'turtle' has no attribute 'screen'
Any idea why this error happened?
Solution 1:[1]
turtle.Screen()
with a capital S should work
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Kirsten_J |
