[Python] Why Python IDE shows such error even when it is installed correctly

Discussão em 'Python' iniciado por Stack, Agosto 25, 2025.

  1. Stack

    Stack Membro Participativo

    1. It shows such as turtle.Terminator
    2. AttributeError: module 'turtle' has no attribute 'forward'

    >>> import turtle
    >>> for i in range(50,100,10):
    ... for j in range(4):
    ... turtle.forward(i)
    ... turtle.left(90)
    ...
    Traceback (most recent call last):
    File "<stdin>", line 3, in <module>
    File "<string>", line 5, in forward
    turtle.Terminator


    Note: my expected result is a square

    Continue reading...

Compartilhe esta Página