turtle.circle() method in Python
Last Updated :
20 Mar, 2025
The Turtle module in Python provides a fun and interactive way to introduce graphics programming. One of its key functions is turtle.circle(), which is used to draw circles (or parts of circles) and can even be used to create regular polygons by specifying the number of steps.
Example: Drawing a simple circle
Python
import turtle
# Create a turtle object
t = turtle.Turtle()
t.circle(80)
# Complete the drawing
turtle.done()
Output

Explanation: t.circle(80) draws a smooth, full circle with a radius of 80.
Syntax of turtle.circle()
turtle.circle(radius, extent=None, steps=None)
Parameters:
- radius (required): Positive for counterclockwise, negative for clockwise circles.
- extent (optional): Defines arc length in degrees; defaults to 360° (full circle).
- steps (optional): Specifies polygon sides instead of a smooth circle.
Return value: This method does not return any value (returns None). It simply draws a circle or an arc based on the given parameters.
Examples of turtle.circle()
Example 1: Drawing a semicircle
Python
import turtle
t = turtle.Turtle()
t.circle(80, extent=180)
turtle.done()
Output :

Explanation: t.circle(80, extent=180) creates a 180° arc, forming a semicircle.
Example 2: Drawing a pentagon
Python
import turtle
t = turtle.Turtle()
# Draw a pentagon (5-sided polygon) using steps
t.circle(80, steps=5)
turtle.done()
Output

Explanation: t.circle(80, steps=5) approximates a circle with a five-sided polygon.
Example 3: Drawing multiple arcs in different directions
Python
import turtle
t = turtle.Turtle()
# Draw first arc in a clockwise direction
t.circle(100, extent=180)
# Move turtle to a new position
t.penup()
t.goto(150, 0)
t.pendown()
# Draw second arc in an anticlockwise direction
t.circle(-100, extent=180)
turtle.done()
Output
Multiple ArcsExplanation: A 180° arc is drawn using t.circle(100, extent=180), then repositioned to draw another arc with t.circle(-100, extent=180), reversing direction for a clockwise effect.
Similar Reads
turtle.color() method in Python turtle.color() method is a function of the turtle module in Python used to change the color of the turtleâs pen and fill. It allows us to customize the appearance of shapes drawn by the turtle by specifying colors using color names, RGB values, or hex codes.Syntaxturtle.color(*args)The *args allows
3 min read
turtle.backward() 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.backward() The turtle.backward() method is used to move the turtle backward
1 min read
turtle.left() 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.left() The turtle.left() method is used to change the direction of the turtl
2 min read
turtle.down() 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.down() The turtle.down() method is used to pull back the pen down on the scr
1 min read
turtle.up() 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.up() The turtle.up() method is used to pull the pen up from the screen. It g
1 min read