Ask Question

Add a function named circle to the polygons module. This function expects the same arguments as the square and hexagon functions. The function should draw a circle. (Hint: the loop iterates 360 times.)

+4
Answers (1)
  1. 2 March, 10:47
    0
    Answer and Explanation:

    import Circle

    #include

    void main ()

    int t, length, n

    //for hexagon

    def hexagon (t, length, n):

    for _ in range (n):

    t. fd (length)

    t. lt (360 / n)

    square = Circle. Circle ()

    square. penup ()

    square. sety (-270)

    square. pendown ()

    hexagon (square, 30, 60)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Add a function named circle to the polygons module. This function expects the same arguments as the square and hexagon functions. The ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers