Draw windows logo using python FREE source code

 


Welcome friends, in this article we will learn how to draw windows logo using python turtle. This is going to be a very short but interesting article, especially for beginners because we have explained every line of code using comments so that even a beginner can understand the logic very easily.



copy code from below👇
# 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()



-Developer
---atharva pawar 2426k
output for the code to draw windows logo

Comments