Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme 

1M horses with recursion

      
            
                
            
 run  | edit  | history  | help 0

Python Circle Test

import math import turtle

draw circle using using turtle

def drawCircleTurtle(x, y, r): # move to start of circle turtle.up() turtle.setpos(x + r. y) turtle.down()

# draw the circle 
for i in range (0, 365, 5)
  a = math.radians(i)
  turtle.setpos(x + r*math.cos(a) , y + r*math.sin(a))
  by  fredhatter6@gmail.com, 14 days ago




Please log in to post a comment.