Why it is not filling the colour | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

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("brown") for i in range(4): forward(700) left(90) end_fill done() I don't understand why it is not filling the color brown inside the background green colour. So it will look like playground. Please help me with code or proper resolution

5th Aug 2022, 8:46 AM
Om Yele
Om Yele - avatar
1 Antwort
+ 1
Looks like you forgot to call the end_fill function
5th Aug 2022, 9:44 AM
Abhay
Abhay - avatar