Guess the result?
Guess the language?
#programinglanguage
#everythingispossible
#startlearning
# Set up the screen
screen = turtle.Screen()
screen.setup(width=500, height=300)
screen.bgcolor("white")
# Create a turtle object
flag = turtle.Turtle()
flag.speed(0)
flag.penup()
# Draw the green rectangle (background)
flag.goto(-250, 150)
flag.begin_fill()
flag.color("green")
flag.forward(500)
flag.right(90)
flag.forward(100)
flag.right(90)
flag.forward(500)
flag.right(90)
flag.forward(100)
flag.end_fill()
# Draw the white part with the moon and star
flag.goto(-125, 150)
flag.begin_fill()
flag.color("white")
flag.forward(250)
flag.right(90)
flag.forward(100)
flag.right(90)
flag.forward(250)
flag.right(90)
flag.forward(100)
flag.end_fill()
# Draw the moon
flag.penup()
flag.goto(0, 180)
flag.begin_fill()
flag.color("green")
flag.end_fill()
# Draw the star
flag.penup()
flag.goto(20, 200)
flag.begin_fill()
flag.color("white")
flag.goto(25, 170)
flag.goto(30, 200)
flag.goto(20, 185)
flag.goto(10, 200)
flag.goto(15, 170)
flag.goto(20, 200)
flag.end_fill()
# Hide the turtle and display the flag
flag.hideturtle()
turtle.done()
# Close the window when clicked
screen.exitonclick()