+ 1

Why it is not filling the colour

from turtle import * title("TURTLE RACE") speed(1) #turtle.bgcolor("green") hideturtle() up() goto(-350,-350) down() begin_fill() fillcolor("blue") for i in range(4): forward(700) left(90) end_fill hideturtle() done()

4th Aug 2022, 3:25 PM
Om Yele
Om Yele - avatar
6 ответов
+ 3
Try this: from turtle import * title("TURTLE RACE") speed(1) turtle.bgcolor("green") hideturtle() up() goto(-350,-350) down() begin_fill() fillcolor("blue") for i in range(4): forward(700) left(90) end_fill hideturtle() done()
5th Aug 2022, 4:43 PM
Victor [The Coder]
Victor [The Coder] - avatar
+ 3
Okay I also found it import turtle t = turtle.Turtle() t.fillcolor('blue') t.begin_fill() for i in range(4): t.forward(150) t.right(90) t.end_fill()
5th Aug 2022, 4:49 PM
Victor [The Coder]
Victor [The Coder] - avatar
+ 2
The turtle.bgcolor is a comment remove the #
4th Aug 2022, 4:04 PM
Victor [The Coder]
Victor [The Coder] - avatar
+ 1
I am drawing a square and want to fill blue color . But blue color is not getting filled
4th Aug 2022, 4:30 PM
Om Yele
Om Yele - avatar
+ 1
Please help me with the solution. I am beginner in this
5th Aug 2022, 8:43 AM
Om Yele
Om Yele - avatar
+ 1
No that is not the solution . I got it end_fill() was missing ()
5th Aug 2022, 4:44 PM
Om Yele
Om Yele - avatar