Featured Post

Python Turtle - Draw Hexagon Design in Python Turtle Graphics Using Python IDLE By #BKTutorial

 






Source Code:

import turtle
t = turtle.Screen() 
turtle.bgcolor('white') 
bkt = turtle.Turtle()
bkt.speed(50)
  
def sqrfunc(size): 
    for i in range(50):
        bkt.fd(size)
        bkt.right(59)
        bkt.width(i/100+0)
        size = size - 2
  
sqrfunc(1)
sqrfunc(2) 
sqrfunc(3)
sqrfunc(4)
sqrfunc(5)




Comments