Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import Turtle
- from numpy import cos, sin, pi
- t = Turtle()
- t.speed(3)
- t.shape('turtle')
- phi = 5*pi/6
- radius = 0.5
- x = radius * cos(phi)
- y = radius * sin(phi)
- print("x = ", x)
- print("y = ", y)
- t.goto(x, y)
- x = 0
- y = 0
- phi = 7*pi/6
- radius = 1
- x = radius * cos(phi)
- y = radius * sin(phi)
- print("x = ", x)
- print("y = ", y)
- t.goto(x, y)
Add Comment
Please, Sign In to add comment