Drawing Pattern Using Python

Published: 26 December 2022
on channel: Day Before Exam
315
4

Here is a code for Drawing Pattern Using Python

import turtle
colors=['red','purple','blue','green','orange','yellow']
t=turtle.Pen()
turtle.bgcolor('black')
for i in range(360):
t.pencolor(colors[i%6])
t.width(i/100+1)
t.forward(i)
t.left(59)
turtle.exitonclick()


On this page of the site you can watch the video online Drawing Pattern Using Python with a duration of hours minute second in good quality, which was uploaded by the user Day Before Exam 26 December 2022, share the link with friends and acquaintances, this video has already been watched 315 times on youtube and it was liked by 4 viewers. Enjoy your viewing!