1#Python program to draw color filled square in turtle programming
2import turtle
3
4t = turtle.Turtle()
5t.fillcolor('blue')
6t.begin_fill()
7for i in range(4):
8 t.forward(150)
9 t.right(90)
10t.end_fill()
1import turtle
2for i in range(2):
3 turtle.forward(20)
4 turtle.right(90)
5 turtle.forward(10)
1import turtle
2for i in range(2):
3 turtle.forward(20)
4 turtle.right(90)
5 turtle.forward(10)
6