filmov
tv
How to create a rotate square using python code?

Показать описание
Code:
from turtle import Turtle,Screen
BASE_UNIT=20
def draw(turtle,start,stop,step):
for i in range(start,stop+1,step):
for y in range(start,stop+1,step):
square=Turtle(shape="square")
draw(square,-12,12,12)
tess=Turtle(shape="square")
draw(tess,-6,6,12)
screen=Screen()
#codingtechnique #pythonturtle #100pythonpracticecode #python #square_rotate
from turtle import Turtle,Screen
BASE_UNIT=20
def draw(turtle,start,stop,step):
for i in range(start,stop+1,step):
for y in range(start,stop+1,step):
square=Turtle(shape="square")
draw(square,-12,12,12)
tess=Turtle(shape="square")
draw(tess,-6,6,12)
screen=Screen()
#codingtechnique #pythonturtle #100pythonpracticecode #python #square_rotate