In our daily life, we use Whatsapp. It becomes our part of life to communicate with our families and friends. So let's drive into the code and have some fun with our code.
Module used:
It is a beginner's friendly project so we will keep it simple and easy and use only one module that is the turtle.
Code:
from turtle import *
from typing import ForwardRef
speed(200)
bgcolor('black')
penup()
goto(-50,50)
right(30)
pendown()
fillcolor('#25D366')
begin_fill()
pencolor('white')
pensize(10)
circle(100,335)
right(60)
forward(30)
left(1)
forward(10)
left(126)
forward(43)
end_fill()
pensize(0)
penup()
goto(-47,185)
right(160)
pendown()
fillcolor('white')
begin_fill()
for i in range(82):
forward(0.5)
left(1)
for i in range(100):
forward(1)
left(0.5)
for i in range(84):
forward(0.5)
left(1)
left(10)
for i in range(30):
forward(0.3)
left(0.3)
left(75)
forward(30)
for i in range(40):
forward(0.1)
left(0.2)
left(88)
for i in range(80):
forward(0.2)
right(0.2)
right(90)
for i in range(60):
forward(1)
right(0.3)
right(85)
for i in range(80):
forward(0.2)
left(0.2)
left(40)
for i in range(72):
forward(0.5)
left(0.5)
end_fill()
penup()
goto(-50,-100)
pendown()
pencolor('cyan')
write("FOLLOW FOR MORE",move=False, font=("Vardana",15, "normal"))
hideturtle()
done()
Output:
Github link:
You can also get the code from here
Comments
Post a Comment