Squary Desing in python
Hey guys hope you enjoyed this video and learn something new about turtle module then make sure to hit the like share and subscribe button and also share this video with your friend and family sol that they can also get to knew
If you want to see 'Squary Design in Python' then click 'here'
Source Code
import turtle
turtle.bgcolor('black')
turtle.speed(0)
turtle.setup(700, 700)
col = ("blue", "blue", "red", "red")
for i in range(450):
turtle.pencolor(col[i%4])
turtle.width(2)
turtle.forward(i)
turtle.right(89)
turtle.forward(i*2)
turtle.right(89)
Comments
Post a Comment