Draw smiling face emoji |Full Python Code || Turtle in Python

Published: 31 October 2022
on channel: TechniqueCoding
4,197
24

Code for smiley face:
import turtle as t
t.pensize(10)
t.fillcolor('yellow')
t.hideturtle()
t.bgcolor('grey')

radius=180
t.penup()
t.setposition(0,-radius)
t.setheading(0)
t.pendown()
t.begin_fill()
t.circle(radius)
t.end_fill()

mouth_radius=radius*0.6
mouth_angle=70
t.penup()
t.setposition(0, -mouth_radius)
t.setheading(0)
t.pendown()
t.circle(mouth_radius,mouth_angle)
t.penup()
t.setposition(0,-mouth_radius)
t.setheading(0)
t.pendown()
t.circle(mouth_radius,-mouth_angle)

x=50
y=50
eye_size=60
t.penup()
t.setposition(x,y)

t.pendown()
t.dot(eye_size)
t.penup()
t.setposition(-x,y)
t.dot(eye_size)
t.done()
#smileyfaceinpython #codeforsmileyface #100pythonpracticecode #codingtechnique


On this page of the site you can watch the video online Draw smiling face emoji |Full Python Code || Turtle in Python with a duration of hours minute second in good quality, which was uploaded by the user TechniqueCoding 31 October 2022, share the link with friends and acquaintances, this video has already been watched 4,197 times on youtube and it was liked by 24 viewers. Enjoy your viewing!