Python and Turtle Difficulty Level 2,for loop,loop Red Cross with Python Turtle (Source Code)

Red Cross with Python Turtle (Source Code)

The following red cross with Python and Turtle. You need to fill it with a color.

Red Cross

Source Code:

import turtle

screen = turtle.Screen()
screen.title('Red Cross - PythonTurtle.Academy')
screen.setup(1000,1000)
turtle.speed(0)
turtle.hideturtle()
turtle.color('red')

turtle.up()
turtle.goto(-450,-150)
turtle.down()
turtle.begin_fill()
for _ in range(4):
    turtle.fd(300)
    turtle.right(90)
    turtle.fd(300)
    turtle.left(90)
    turtle.fd(300)
    turtle.left(90)      
turtle.end_fill()

Related Post