Tuesday, June 29, 2021

Draw BROKEN HEART💔 by using Python

Hi Everyone,

For more python project and there code follow us.....

Welcome to our blog to learn coding and get python codes.

To write python code you install pycharm (its my suggestion) app in your laptop or desktop.


This is our project BROKEN 💔 HEART image 👆






this project code is here👇


import turtle
s=turtle.Screen().bgcolor("black")
t=turtle.Turtle()
t.speed(0)
t.width(12)

def curve():
    for i in range (200):
        t.right(1)
        t.forward(1)

def heart():
    t.color("red","red")
    t.begin_fill()
    t.left(140)
    t.forward(113)
    curve()
    t.left(120)
    curve()
    t.forward(112)
    t.end_fill()

heart()
t.pencolor("black")
t.penup()
t.goto(0,170)
t.pendown()
for zigzag in range (3):
    t.left(75)
    t.forward(40)
    t.right(65)
    t.forward(45)

turtle.done

3 comments:

  1. thanks thalaiva i want more this related feelings from you

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Visit: https://needsofpeoples.blogspot.com

      Delete

from turtle import * bgcolor('black') pensize(2) speed(11) hideturtle() for i in range(220): color('yellow') circle...