AttributeError: 'module' object has no attribute 'Screen'
Question: I'm trying to make a square with python. Here's the code:

    
    
    import turtle
    
    def draw_square():
    
        window = turtle.Screen()
        window.bgcolor("red")
    
        brad = turtle.Turtle()
        brad.shape("turtle")
        brad.color("yellow")
        brad.speed(2)
    
        brad.forward(100)
        brad.right(90)
        brad.forward(100)
        brad.right(90)
        brad.forward(100)
        brad.right(90)
        brad.forward(100)
        brad.right(90)
    
    
        window.exitonclick()
    draw_square()
    

But I get this error:

    
    
    File "C:/Python27\turtle.py", line 4, in draw_square
      window = turtle.Screen()
    AttributeError: 'module' object has no attribute 'Screen'
    


Answer: you called your file `turtle.py` so you end up importing your own file instead
of the module, rename it and remove the `.pyc` files (possibly in a
`__pycache__` folder) and you should be good to go.

