Turtle is a Python module that provides a drawing board like feature, which enables users to create pictures and shapes. Turtle is one of the most popular ways of introducing programming to kids and is part of the original LOGO programming language.
The on-screen pen that is used for drawing is called the turtle and can be moved using the functions like turtle.forward(), turtle.left(), etc. For example turtle.forward(10) will move the pen in the forward direction by 10 pixels. Consider the below example for better understanding.
Example:
Python3
import turtle # moves the pen in the # forward direction by # 110 pixels turtle.forward( 110 ) # changes the direction of # the pen by 10 degrees in the # left direction turtle.left( 110 ) # moves the pen in the # forward direction in # the new direction by # 110 pixels turtle.forward( 110 ) |
Let’s get started learning Turtle from basics to advance with the help huge dataset containing well-explained functions and exercises which are categorized properly to help you learn it in a more systematic way.
Introduction
Programming with Turtle
Moving and Drawing with Turtle
- turtle.backward() method in Python
- turtle.left() method in Python
- turtle.right() method in Python
- turtle.setx() function in Python
- turtle.sety() function in Python
- turtle.seth() function in Python
- turtle.dot() function in Python
- turtle.home() function in Python
- turtle.speed() function in Python
- turtle.undo() function in Python
- turtle.stamp() function in Python
- turtle.clearstamp() method in Python
- turtle.clearstamps() method in Python
- turtle.towards() function in Python
- turtle.heading() function in Python
- turtle.xcor() function in Python
- turtle.ycor() function in Python
- turtle.degrees() function in Python
- Python – turtle.radians()
Pen Control in Turtle
- turtle.up() method in Python
- turtle.down() method in Python
- turtle.isdown() function in Python
- turtle.width() function in Python
- turtle.pen() function in Python
- turtle.write() function in Python
- turtle.color() method in Python
- turtle.fillcolor() function in Python
- Python – turtle.pencolor() method
- turtle.filling() function in Python
- turtle.begin_fill() function in Python
- turtle.end_fill() function in Python
- Python – turtle.clear()
Event Handling with Turtle
- turtle.onclick() function in Python
- turtle.onkey() function in Python
- turtle.onscreenclick() function in Python
- turtle.onrelease() function in Python
- turtle.ontimer() function in Python
- turtle.ondrag() function in Python
- Python – turtle.exitonclick()
- Python – turtle.done()
Working With Turtle State
- turtle.showturtle() function in Python
- turtle.isvisible() function in Python
- turtle.shape() function in Python
- turtle.turtlesize() function in Python
- turtle.tilt() function in Python
- turtle.shapetransform() function in Python
- turtle.settiltangle() function in Python
- turtle.shearfactor() function in Python
- turtle.get_poly() function in Python
- turtle.resizemode() function in Python
- turtle.pos() method in Python
Working with Turtle Screen
- turtle.reset() function in Python
- turtle.resetscreen() function in Python
- Python – turtle.Screen().setup() method
- Python – turtle.clear()
- turtle.bgpic() function in Python
- turtle.Screen().turtles() function in Python
- turtle.setworldcoordinates() function in Python
- turtle.numinput() function in Python
- turtle.textinput() function in Python
- turtle.window_height() function in Python
- turtle.window_width() function in Python
- turtle.screensize() function in Python
- turtle.title() function in Python
- Python – turtle.done()
- turtle.addshape() function in Python
- turtle.colormode() function in Python
- Python – turtle.delay() method
- turtle.tracer() function in Python
- turtle.mode() function in Python
- turtle.register_shape() function in Python
- Python – turtle.bye()
Special Turtle Methods
- turtle.clone() function in Python
- turtle.undobufferentries() function in Python
- turtle.setundobuffer() function in Python
- turtle.getpen() function in Python
- turtle.getshapes() function in Python
- turtle.get_shapepoly() function in Python
- turtle.getscreen() function in Python
Turtle Exercises and projects
Beginners
- How to Get Coordinate Of Screen in Python Turtle ?
- Draw Square and Rectangle in Turtle – Python
- Draw Color Filled Shapes in Turtle – Python
- Python – Draw Hexagon Using Turtle Graphics
- Python – Draw Octagonal shape Using Turtle Graphics
- Draw any polygon in Turtle – Python
- Draw Ellipse Using Turtle in Python
- Draw Cube and Cuboid in Python using Turtle
- Draw Colored Solid Cube using Turtle in Python
- Python – Draw Star Using Turtle Graphics
- How to draw color filled star in Python-Turtle?
- Draw Rainbow using Turtle Graphics in Python
- Python – Write “GFG” using Turtle Graphics
- Python – Draw “GFG” logo using Turtle Graphics
- Draw smiling face emoji using Turtle in Python
Intermediate
- Draw Shape inside Shape in Python Using Turtle
- Draw an Olympic Symbol in Python using Turtle
- Draw Concentric Circles with VIBGYOR Using Turtle in Python
- Draw Dot Patterns Using Turtle in Python
- Draw a car using Turtle in Python
- Draw sun using Turtle module in Python
- Draw Heart Using Turtle Graphics in Python
- Draw Diamond shape using Turtle graphics in Python
- Draw Graph Grid Using Turtle in Python
- Draw Panda Using Turtle Graphics in Python
- Draw house using Turtle programming in Python
- Draw a snowman using turtle module in Python
- Draw Clock Design using Turtle in Python
- Create digital clock using Python-Turtle
- Draw Colourful Star Pattern in Turtle – Python
- Print a Spirograph using turtle in Python
- Draw Spiraling Star using Turtle in Python
- Draw Spiraling Square using Turtle in Python
- Draw Spiraling Triangle using Turtle in Python
- Draw Spiraling Polygon using Turtle in Python
- Draw Colorful Spiral Web Using Turtle Graphics in Python
- Draw a Tic Tac Toe Board using Python-Turtle
- Draw Chess Board Using Turtle in Python
- Python – Hilbert Curve using turtle
- Turtle – Draw Lines using arrow keys
- Draw lines at the respective positions clicked by the mouse using Turtle
- Python Turtle – Graphics Keyboard Commands
- How to make Triangle in Python Turtle using onscreenclick?
Advance
- How to Create custom Turtle shapes in Python?
- Circle of Squares using Python
- How to draw 2-layered and colored spider web in Python using Turtle Module?
- Y Fractal tree in Python using Turtle
- How to make Indian Flag using Turtle – Python
- Draw Starry Sky with Moon using Turtle in Python
- Draw moving object using Turtle in Python
- Create a simple Animation using Turtle in Python
- Create a Simple Two Player Game using Turtle in Python
- Create a Snake-Game using Turtle in Python
- Create pong game using Python – Turtle
- Flipping Tiles (memory game) using Python3