Friday, July 3, 2026
HomeLanguagesturtle.circle() method in Python

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.

                                                                            turtle.circle() :

This method is used to draw a circle with a given radius.

Syntax: turtle.circle(radius, extent=None, steps=None)

Parameters: 

  • 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 :

Example 1:

Python3




# importing turtle package
import turtle
  
# draw circle of radius 
# 80 pixel
turtle.circle(80)


Output :

Draw circle of radius 80

Example 2:

Python3




# importing turtle package
import turtle
  
# draw circle of radius 80 
# pixel and extent = 180
# so it draw half circle
turtle.circle(80
              extent = 180)


Output :

draw a semi circle of radius 80

Example 3:

Python3




# importing turtle package
import turtle
  
# draw circle of radius 80
# pixel and steps = 5
# so it draw pentagon with
# equal length 5 sides
turtle.circle(80
              steps = 5)


Output :

Draw regular pentagon

RELATED ARTICLES

2 COMMENTS

Most Popular

Dominic
32519 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6900 POSTS0 COMMENTS
Nicole Veronica
12015 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12110 POSTS0 COMMENTS
Shaida Kate Naidoo
7019 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6966 POSTS0 COMMENTS