Impress Your Crush with Python | Heart Shape using Turtle in python
Code With Rudy
import turtle def draw_heart(): t.begin_fill() t.left(140) t.forward(180) t.circle(-90, 200) t.setheading(60) t.circle(-90, 200) t.forward(180) t.end_fill() def write_text(): text = "Enter Your Crush Name here"#enter name t.penup() t.goto(0, -50) t.color('black') t.write(text, align='center', font=('Arial', 20, 'normal')) t = turtle.Turtle() t.speed(5) t.color('red') t.pensize(5) draw_heart() write_text() t.hideturtle() turtle.done()
0 Comments