radians in python turtle

38

import turtle
t = turtle.Turtle()

# Using Radians
t.radians() # 1 Radian = 180/ PI degrees

# Using Degrees
t.degrees() # 1 Degrees = PI /180 radians

t.leftturn(100) # This integer value will turn the turtle differently depending
# on if the turtle is using degrees() or radians()

Comments

Submit
0 Comments