0

i am trying to make a checkerboard that centerss automaticly no matter what the sideLength is. also i am tryiing to put the checker in the squares...im only a beginner!!!! have mercy

heres what i have

```
def drawCheckerBoard(myTurtle,sideLength):
myTurtle.speed(0)
for i in range (8):
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
for i in range (1):
myTurtle.right(90)
myTurtle.forward(sideLength*2)
myTurtle.right(90)
for i in range(8):
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
for i in range(1):
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
for i in range (8):
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
for i in range (1):
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
for i in range(8):
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
for i in range(1):
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
for i in range (8):
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
for i in range (1):
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
for i in range(8):
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
for i in range(1):
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
for i in range (8):
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
myTurtle.left(90)
myTurtle.forward(sideLength)
for i in range (1):
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
for i in range(8):
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
myTurtle.right(90)
myTurtle.forward(sideLength)
```

*Edited
by vegaseat*: added code tags