Python Turtle Side Look Emoji

Hello friends, in this article, I am presenting you with a simple way to create an emoji. We are creating a Side Look Emoji using python turtle.

This is very easy to code and create. First, we have imported the turtle and then we have initialized it.

Then we created it first eye which is looking our left side using circle() function in python turtle, and in the same way we have created the second eye. At last, we just draw it’s lips(mouth) by drawing a line. To draw that line, we first changed the postion of our pen using goto() function and then just changed it’s size to 10 using pensize() function.

This is very easy and simple to create Side Look Emoji. We have also used some other function like color(), begin_fill(), end_fill(), etc. These all are easy to understand because the names of these functions tell the purpose of them themselves.

Now, let’s see the code.

Source Code

import turtle
my_pen = turtle.Turtle()

my_pen.color("#ffdd00")
my_pen.begin_fill()
my_pen.circle(100)
my_pen.fillcolor("#ffdd00")
my_pen.end_fill()
my_pen.home()

my_pen.goto(-40, 100)
my_pen.color("#555555")
my_pen.begin_fill()
my_pen.circle(15)
my_pen.color("#ffffff")
my_pen.end_fill()
my_pen.penup()
my_pen.goto(-48, 110)
my_pen.pendown()
my_pen.color("Black")
my_pen.begin_fill()
my_pen.circle(5)
my_pen.end_fill()
my_pen.penup()

my_pen.goto(40, 100)
my_pen.pendown()
my_pen.color("#555555")
my_pen.begin_fill()
my_pen.circle(15)
my_pen.color("#ffffff")
my_pen.end_fill()
my_pen.penup()
my_pen.goto(32, 110)
my_pen.pendown()
my_pen.color("Black")
my_pen.begin_fill()
my_pen.circle(5)
my_pen.end_fill()
my_pen.penup()

my_pen.goto(-20, 50)
my_pen.pendown()
my_pen.pensize(10)
my_pen.forward(40)

turtle.done()

Output:

output

Also read:

Share:

Author: Harry

Hello friends, thanks for visiting my website. I am a Python programmer. I, with some other members, write blogs on this website based on Python and Programming. We are still in the growing phase that's why the website design is not so good and there are many other things that need to be corrected in this website but I hope all these things will happen someday. But, till then we will not stop ourselves from uploading more amazing articles. If you want to join us or have any queries, you can mail me at admin@copyassignment.com Thank you