r/pythontips • • Jul 04 '21

Standard_Lib Our first turtle program in python

In computer graphics, turtle graphics are vector graphics utilizing a relative cursor (the "turtle") upon a Cartesian plane (x and y-axis). Turtle graphics is a vital component of the Logo programming language. Our first turtle program in python

MethodParameterDescription
Turtle()NoneCreates and returns a new tutrle object
forward()amountMoves the turtle forward by the specified amount
backward()amountMoves the turtle backward by the specified amount
right()angleTurns the turtle clockwise
left()angleTurns the turtle counterclockwise

Continue reading.....

30 Upvotes

Duplicates