Skip to content
← Back to Community
Question for python(with turtle)
Profile icon
Taiga123m

How do you do the fill command with python(with turtle)

Answered by SUHASTADIPARTH1 [earned 5 cycles]
View Answer
Voters
Profile icon
ELIMCKNIGHT
Profile icon
Taiga123m
Comments
hotnewtop
Profile icon
SUHASTADIPARTH1

You can do

taiga = turtle.Turtle() taiga.color('green', 'blue') taiga.begin_fill() # code here taiga.end_fill()
Profile icon
SUHASTADIPARTH1
Profile icon
Taiga123m

@SUHASTADIPARTH1 lol you used my real name
thats not the reason I mark u

Profile icon
SUHASTADIPARTH1

@Taiga123m yeah. I didn't know that. I thought I just used your username!

Profile icon
Taiga123m
Profile icon
RYANTADIPARTHI

Solution

The fill command is basically a command the fills in whatever you have. Like shapes, or something you want to fill with color:

import turtle turtle = turtle.Turtle() turtle.color('red') turtle.shape('classic') begin_fill('blue') # fills with color for i in range(4): turtle.forward(100) turtle.left(90) end_fill()

So like that, you can use a color to fill it in, and you will have color.
That should work

Profile icon
Taiga123m

@RYANTADIPARTHI since I forgot about turtle I was confused how to name it lol

Profile icon
Taiga123m

How do you make the pen faster again?

Profile icon
RYANTADIPARTHI
Profile icon
RYANTADIPARTHI

@Taiga123m like this:

turtle.speed(0)
Profile icon
Taiga123m

@RYANTADIPARTHI you did but I marked somebody else (i'm sorry) but Whats so cool about getting marked?

Profile icon
Taiga123m

@RYANTADIPARTHI I realized a really high rank and super cool person is helping me a lot.

Profile icon
RYANTADIPARTHI
Profile icon
Taiga123m

@RYANTADIPARTHI no thank you your even sponsored from the repl.it list thingie.