Header Ads

Windows logo by using python🥰🥰II Cooding Status😍🥰🥰😜😜

In today's tutorial, we will learn how to create Windows logo by using python and in this you will also get the source code.And till now we haven't visited YouTube channel 'Mr Code Box', so hurry up, you get good Python coding video content, so let's start this tutorial.

Let's Start

Video Tutriol



You can visit our YouTube channel 'Mr Code Box' and watch the video tutorial.



Source Code


# Windows Logo
# importing turtle
from turtle import *
# setting turtle speed
speed(1)
width(4)
# setting background color
bgcolor('black')
# setting color to blue
color('blue')

begin_fill()

penup()

# moving turtle to starting point
goto(-50,60)
pendown()
# going to right top
goto (100,100)
# going to right bottom
goto (100,-100)
# going to left bottom
goto(-50,-60)
# going to starting point
goto(-50,60)

end_fill()

penup()

# setting turtle color to black
color('black')
# changing width of turtle
width(10)

# cutting the shape into two equal halves horizontally

# starting from left middle
goto(-50,0)
pendown()
# ending at right middle
goto(100, 0)

penup()

# cutting the shape into two halves vertically
# starting from upper middle
goto (25,80)
pendown()
# ending at bottom middle
goto(25,-80)

done()

Output 







No comments

Powered by Blogger.