i am trying to generate this figure in python under three different version (2.7.6 & 2.7.11 & 3.5.1)
and yet every time i get a shell error stating {AttributeError: 'module' object has no attribute 'Screen'}
what is the problem here
I have even tried in writing individual command in IDLE and they are responding one at a time. but not as a script.
def draw_square ():
import turtle
playground = turtle.Screen()
playground.bgcolor("red")
playground.screensize(600,400)
brad = turtle.Turtle()
brad.forward(100)
brad.right(90)
brad.forward(100)
brad.right(90)
brad.forward(100)
brad.right(90)
brad.forward(100)
brad.right(90)
playground.exitonclick()
draw_square()