Форум сайта python.su
0
Хотел исполнить программу в версии пайтон 3,5, но вышла ошибка Traceback (most recent call last):
File “C
Users/Евгений/Documents/dfdf.py”, line 2, in <module>
tortilla = turtle (shape= ‘classic’)
NameError: name ‘turtle’ is not defined
Программа такая
from turtle import *
tortilla = turtle (shape= ‘classic’)
Помогите, пожалуйста решить эту проблему?
Офлайн
568
try this
from turtle import * color('red', 'yellow') begin_fill() while True: forward(200) left(170) if abs(pos()) < 1: break end_fill() done()
Офлайн