Draw a Smiling Face Using Python Turtle 😊 Emoji
In this tutorial blog, we are here to explain How to Draw a Smiling Face Using Python Turtle 😊 Emoji. We have added the video tutorial, the source code and even the output of the given source code.
So let us begin with How to Draw a Smiling Face Using Python Turtle 😊 Emoji.
Video Tutorial: Draw Smiling Face Using Python Turtle 😊 Emoji
Source Code:
import turtle
import colorsys
screen = turtle.Screen ()
screen.setup(500, 600, startx=0, starty=100)
# turtle abject
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()
input()
Output:

