Draw Love Shape Using Python

 Draw Love Shape Using Python 


Welcome to the code! Here’s a simple code for drawing a red heart design using Turtle programming.
In this code, we used a turtle named “red” to design the red heart.

Note: Loved the post? You too can publish your article on “Python for fun” which will be loved by millions.


Source Code

import turtle
screen = turtle. Screen ()
screen.setup(500, 600, startx=0, starty=450)
turtle. speed (3)
turtle.bgcolor('black')
turtle.pensize(3)
def func():
    for i in range(200):
        turtle.right(1)
        turtle.forward(1)

turtle.color('red', 'pink')
turtle.begin_fill()
turtle. left(140)
turtle. forward(111.65)
func()
turtle. left(120)
func()
turtle.forward(111.65)
turtle.end_fill()
turtle.hideturtle()
turtle.done()


Output



Comments