Showing posts with label #coding#india. Show all posts
Showing posts with label #coding#india. Show all posts

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

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