← Back to Blog

"Python Programming Tutorial: How to Draw a Circle

"2026-11-10

If you are following a python programming tutorial, one of the first shapes you will want to draw is a circle. It is actually much easier than drawing a square because you only need one command.

You do not need to calculate angles or loops. You just tell the turtle how big the circle should be.

The circle() Command

The turtle module has a built-in function called circle(). You pass it a single number, which represents the radius of the circle in pixels.

Python
from turtle import * bgcolor("black") color("cyan") pensize(4) circle(80) done()

This code sets the background to black, the pen color to cyan, and the thickness to 4 pixels. Then, it draws a circle with a radius of 80 pixels.

How to Draw Arcs (Half Circles)

You can also draw a portion of a circle by adding a second number. This is called the "extent". For example, adding 180 draws a half-circle.

Python
from turtle import * bgcolor("black") color("hotpink") pensize(3) # Draw a half circle circle(100, 180) done()

Combining Circles to Make Art

Once you know how to draw a single circle, you can use a loop to draw hundreds of them. By rotating the turtle slightly after each circle, you can create a Pinwheel Flower.

Pinwheel Flower drawn with Python turtle

This design is made by drawing overlapping circles and rotating the canvas.

View the Full Code

Practice What You Learned

Want to see how to combine circles to make complex shapes? Check out our dedicated interactive lesson where you can run the code right in your browser.

Take Python Turtle Everywhere

If you want to practice Python Turtle and master Python on your phone, we highly recommend Python Play. It features a built-in Turtle graphics playground and 100 interactive levels to test your coding skills.

Python Play: Coding & Quiz App

Learn Python, solve 100 challenges, and run real Turtle graphics code directly on your phone. No setup required.

Get it on Google Play