Hi;
Can you please help me eith the code in below? I want to draw five square that touch to each other on their upper-right corners, but I am not able to do this. Ia m waiting your helps:
Can you please help me eith the code in below? I want to draw five square that touch to each other on their upper-right corners, but I am not able to do this. Ia m waiting your helps:
import turtle def drawSquare(t, sz, dg): for i in range(4): t.forward(sz) t.left(dg) wn = turtle.Screen() wn.bgcolor("red") tess = turtle.Turtle() tess.pensize(3) def WholeJob (a,b): for i in range(5): drawSquare(tess, 50, 90) tess.penup() tess.goto(a,b) tess.pendown() WholeJob(50, 50) wn.exitonclick()