When you Draw Heart in Python Using Turtle, you tap into a fun way to create graphics and learn programming concepts. Turtle is a beginner-friendly module in Python’s standard library that lets you control a pen-like cursor to draw shapes, images on the screen. By breaking down the smiley face into basic geometric shapes—circle for the face, smaller circles for eyes, and an arc for the mouth—you’ll gain experience with loops, functions, and coordinate positioning. This tutorial guides you through code explanations and tips for customization. Whether you’re new to coding or teaching, this project is a fun way to sharpen your Python and geometry skills.
Python Program to Draw Smiley Face Emoji Using Turtle
# Python program to draw smile face # face emoji using turtle import turtle # turtle object pen = turtle.Turtle() # function for creation of eye def eye(col, rad): pen.down() pen.fillcolor(col) pen.begin_fill() pen.circle(rad) pen.end_fill() pen.up() # draw face pen.fillcolor('yellow') pen.begin_fill() pen.circle(100) pen.end_fill() pen.up() # draw eyes pen.goto(-40, 120) eye('white', 15) pen.goto(-37, 125) eye('black', 5) pen.goto(40, 120) eye('white', 15) pen.goto(40, 125) eye('black', 5) # draw nose pen.goto(0, 75) eye('black', 8) # draw mouth pen.goto(-40, 85) pen.down() pen.right(90) pen.circle(40, 180) pen.up() # draw tongue pen.goto(-10, 45) pen.down() pen.right(180) pen.fillcolor('red') pen.begin_fill() pen.circle(10, 180) pen.end_fill() pen.hideturtle()