turtle.filling() function in Python Last Updated : 28 Jul, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.filling() This function is used to return fillstate (True if filling, False else). It doesn't require any argument. Syntax : turtle.filling() Below is the implementation of the above method with some examples : Example 1: Default value Python3 # import package import turtle # check the default # filling state print(turtle.filling()) Output : False Example 2: Inside fill Python3 # import package import turtle # begin the fill and check # the filling state turtle.begin_fill() print(turtle.filling()) Output : True Example 3: After fill Python3 # import package import turtle # begin fill, do something and # end fill then check filling state turtle.begin_fill() turtle.end_fill() print(turtle.filling()) Output : False Here we get that we can check the filling state anywhere in the program and get True only inside the fill statements ie; either after the begin_fill() method or in between the begin_fill() and end_fill() methods. Comment More infoAdvertise with us Next Article turtle.end_fill() function in Python D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads turtle.end_fill() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.end_fill() This method is used to Fill the shape drawn after the call begin_ 1 min read turtle.fillcolor() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.fillcolor() This method is used to return or set the fillcolor. If turtlesha 2 min read turtle.clone() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.clone() The turtle.clone() method is used to create and return a clone of th 2 min read turtle.begin_fill() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.begin_fill() This method is used to call just before drawing a shape to be f 1 min read turtle.dot() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.dot()This function is used to draw a circular dot with a particular size, wi 2 min read turtle.distance() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.distance() This method is used to return the distance from the turtle to (x, 2 min read Like