Python - Draw Octagonal shape Using Turtle Graphics Last Updated : 19 Oct, 2020 Comments Improve Suggest changes Like Article Like Report In this article, we will learn how to Make an Octagon using Turtle Graphics in Python. For that lets first know what is Turtle Graphics. Turtle graphicsbackward(length): moves the pen in the backward direction by x unit.right(angle): rotate the pen in the clockwise direction by an angle x.left(angle): rotate the pen in the anticlockwise direction by an angle x.penup(): stop drawing of the turtle pen.pendown(): start drawing of the turtle pen. ApproachImport the turtle modules.Get a screen to draw onDefine an instance for the turtle.For a drawing, an Octagon executes a loop 8 times.In every iteration move the turtle 100 units forward and move it left 45 degrees( corresponding to 135 degrees between two sides, so 180-135=45 degrees).This will make up an angle of 135 degrees between 2 sides.8 iterations will make up an Octagon perfectly. Below is the Python implementation of the above approach: Python3 # import for turtle module import turtle # making a workScreen ws = turtle.Screen() # defining a turtle instance geekyTurtle = turtle.Turtle() # iterating the loop 8 times for i in range(8): # moving turtle 100 units forward geekyTurtle.forward(100) # turning turtle 45 degrees so # as to make perfect angle for an octagon geekyTurtle.left(45) Output: Octagon Comment More infoAdvertise with us Next Article Python - Draw Octagonal shape Using Turtle Graphics taran910 Follow Improve Article Tags : Python Python Programs Python-turtle Practice Tags : python Similar Reads Python - Draw Hexagon Using Turtle Graphics In this article, we will learn how to make a Hexagon using Turtle Graphics in Python. For that lets first know what is Turtle Graphics. Turtle graphics Turtle is a Python feature like a drawing board, which let us command a turtle to draw all over it! We can use many turtle functions which can move 2 min read Draw Star Using Turtle Graphics-Python Python's Turtle module offers a fun and interactive way to create graphics by controlling a turtle (pen) to draw on the screen. In this article, we will learn how to use Turtle to draw a simple star. Some commonly used methods are:forward(length) moves the pen in the forward direction by x unit.back 2 min read Draw Spiralling Circles Using Turtle Graphics in Python Turtle is an inbuilt module of python. It enables us to draw any drawing by a turtle, methods defined in the turtle module, and by using some logical loops. To draw something on the screen(cardboard) just move the turtle(pen). To move turtle(pen) there are some functions i.e forward(), backward(), e 1 min read Draw Colorful Spiral Web Using Turtle Graphics in Python âTurtleâ is a Python feature like a drawing board, which lets us command a turtle to draw all over it. This comes packed with the standard Python package and need not be installed externally.Methods used:forward(value): moves the turtle in the forward direction.turtle.Pen(): setup the turtle penspee 1 min read Create a Snake-Game using Turtle in Python The Snake Game is a classic arcade game first released in 1976 by Gremlin Industries and published by Sega. The goal is simple to control the snake using arrow keys, collect food to grow longer and avoid hitting the walls or yourself. Weâll build this game in Python using the following modules:Turtl 6 min read Python - Write "GFG" using Turtle Graphics IN this article we will learn how to write "GFG" using Turtle Graphics in Python. For that lets first know what is Turtle Graphics. Turtle graphicsbackward(length): moves the pen in the backward direction by x unit.right(angle): rotate the pen in the clockwise direction by an angle x.left(angle): ro 2 min read Draw Black Spiral Pattern Using Turtle in Python Prerequisite: Turtle Programming in Python âTurtleâ is a Python feature like a drawing board, which lets us command a turtle to draw all over it. This module comes packed with the standard Python package and need not be installed externally. Functions used:forward(value): It moves the turtle in forw 1 min read Create a simple Animation using Turtle in Python Turtle is a built-in Python module that provides a simple way to draw and create graphics using a virtual turtle on the screen. You can control the turtle using commands like forward() and right() to move it around and draw shapes. In this article, we'll use Turtle to create a fun animation where mu 2 min read Star fractal printing using Turtle in Python Prerequisite: Turtle Programming Basics Fractals are objects that tend to have self-similar structures repeated a finite number of times. The objective of this article is to draw a star fractal where a star structure is drawn on each corner of the star and this process is repeated until the input si 2 min read Python program to draw a bar chart using turtle Prerequisite: Turtle Programming Basics Turtle is a Python feature like a drawing board, which lets us command a turtle to draw all over it! We can use functions like a turtle.forward(â¦) and turtle.right(â¦) which can move the turtle around. Turtle is a beginner-friendly way to learn Python by runnin 3 min read Like