turtle.begin_fill() function in Python
turtle.begin_fill() function mark the starting point for filling a shape. Any drawing commands executed after this call (until turtle.end_fill()) will be filled with the currently set fill color.
Syntax :
turtle.begin_fill()
Parameters: This function does not take any parameters.
Return Value: This function does not return anything. It only changes the turtleâs state to fill mode.
Example:
import turtle
turtle.up()
turtle.goto(0, -30)
turtle.down()
turtle.color("yellow")
turtle.begin_fill()
turtle.circle(60)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
Output :

Explanation:
- turtle.color("yellow") sets the outline and fill color to yellow.
- turtle.begin_fill() starts the filling process.
- turtle.circle(60) draws a circle of radius 60.
- turtle.end_fill() completes the fill and colors the shape.
- turtle.done() keeps the drawing window open.