• Предмет: Информатика
  • Автор: tsvetochek9
  • Вопрос задан 2 года назад

Срочнооо❤️Чим відрізняються команди turtle.forward(100) та turtle.fd(100)?

Ответы

Ответ дал: Аноним
1

Докуметация к этим командам:

forward(distance)

   Move the turtle forward by the specified distance.

   

   Aliases: forward | fd

   

   Argument:

   distance -- a number (integer or float)

   

   Move the turtle forward by the specified distance, in the direction

   the turtle is headed.

   

   Example:

   >>> position()

   (0.00, 0.00)

   >>> forward(25)

   >>> position()

   (25.00,0.00)

   >>> forward(-75)

   >>> position()

   (-50.00,0.00)

т.е. forward и fd делают одно и то же. перемещает курсор на n координат перёд. пример есть  в докуметации

Вас заинтересует