149k views
2 votes
Which shape would the code circle (100, steps=4) draw?

A. square
b. circle
c. octagon
d. triangle

User Overleaf
by
7.6k points

1 Answer

2 votes

Square shape have the code circle (100, steps=4) draw.

A. square

Step-by-step explanation:

This circle function code is done in Python. The circle function is available in turtle module. In python turtle module is used for graphics. We have to import turtle module in IDLE and call the function Turtle() to open the turtle graphics screen.

Then we can call the function circle() which takes 100 as radius and step size as parameter into the function and resulting in drawing a square of 100 radius. The square is drawn tilted due to the movement of the turtle(the arrow head).

User Nicc
by
7.7k points