turtle.degrees()

turtle.degrees(fullcircle=360.0)

Parameters: fullcircle – a number

Set angle measurement units, i.e. set number of “degrees” for a full circle. Default value is 360 degrees.

1
2
3
4
5
6
7
8
9
10
11
12
13
>>> turtle.home()
>>> turtle.left(90)
>>> turtle.heading()
90.0
 
Change angle measurement unit to grad (also known as gon,
grade, or gradian and equals 1/100-th of the right angle.)
>>> turtle.degrees(400.0)
>>> turtle.heading()
100.0
>>> turtle.degrees(360)
>>> turtle.heading()
90.0
doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.