How to make protractor / circular array in python by using turtle

 How to make protractor / circular array in python by using turtle


this code will make upto 36 degree angle
from turtle import *

for theta  in range(0,360,30):

    fd(100)
    write(str(theta)+'*')
    backward(100)
    left(30)

this code will make upto 180 degreaa

from turtle import *

for theta  in range(0,185,5):

    fd(100)
    write(str(theta)+'*')
    backward(100)
    left(5)




Post a Comment

0 Comments