turtle.circle() method in Python
The Turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
This method is used to draw a circle with a given radius.
Syntax: turtle.circle(radius, extent=None, steps=None)
- radius: Radius of the circle.
- extent: The part of the circle in degrees as an arc.
- steps: Divide the shape in the equal number of given steps.
Below is the implementation of the above method with some examples :
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course