This video shows a pattern. It was created in Python using Turtle module.
It is lot of fun to create these patterns and a minor change in the code gives a different pattern!
Here is the code :
import turtle
screen = turtle.getscreen()
turtle.shape("turtle")
turtle.speed(0)
turtle.pencolor("yellow")
turtle.width(2)
screen.bgcolor("black")
for i in range(100):
turtle.left(115)
turtle.forward(200)
Change the numbers and colours in the above code and see the pattern. Share your pattern with us .
Also don't forget the indentation.
[email protected]
#Coding #Python #Pattern