Friday, July 24, 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
32520 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6902 POSTS0 COMMENTS
Nicole Veronica
12017 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12115 POSTS0 COMMENTS
Shaida Kate Naidoo
7023 POSTS0 COMMENTS
Ted Musemwa
7265 POSTS0 COMMENTS
Thapelo Manthata
6980 POSTS0 COMMENTS
Umr Jansen
6971 POSTS0 COMMENTS