-- 8x8 tabla bez bojenja import turtle t = turtle.Turtle() def kvadrat(a): for i in range(4): t.forward(a) t.left(90) a=20 t.speed(5) for i in range(8): for j in range(8): kvadrat(a) t.forward(a) t.penup() t.forward(-8*a) t.right(90) t.forward(a) t.left(90) t.pendown() -- 8x8 sa bojenjem """ This is the Template Repl for Python with Turtle. Python with Turtle lets you make graphics easily in Python. Check out the official docs here: https://docs.python.org/3/library/turtle.html """ import turtle t = turtle.Turtle() def kvadrat(a,boja): t.fillcolor(boja) t.begin_fill() for i in range(4): t.forward(a) t.left(90) t.end_fill() a=20 t.speed(5) for i in range(8): for j in range(8): boja = "white" if (i+j)%2==1: boja = "black" kvadrat(a, boja) t.forward(a) t.penup() t.forward(-8*a) t.right(90) t.forward(a) t.left(90) t.pendown()