Amazing pattern using python - turtle programming

Published: 02 August 2021
on channel: Adi's Technical Aid
77
4

Code :
import turtle
import random

wn = turtle.Screen()
wn.bgcolor("black")
astroid = turtle.Turtle()
astroid.speed(0)

pentago = turtle.Turtle()
pentago.speed(0)
pentago.up()
pentago.goto(0, 0)
pentago.down()

colors = ["red", "gold", "blue", "green", "white", "cyan", "pink"]

for i in range(50):
pentago.color(random.choice(colors))
pentago.forward(i * 5)
pentago.left(72)



pentago.up()
pentago.goto(-140, -20)
pentago.hideturtle()


turtle.done()


On this page of the site you can watch the video online Amazing pattern using python - turtle programming with a duration of hours minute second in good quality, which was uploaded by the user Adi's Technical Aid 02 August 2021, share the link with friends and acquaintances, this video has already been watched 77 times on youtube and it was liked by 4 viewers. Enjoy your viewing!