HOW TO MAKE SQUARE USING TURTLE IN PYTHON || EXPLAINED PROPERLY

Published: 26 May 2021
on channel: code with PK
153
22

HELLO GUYS,
HERE WE WILL LEARN HOW TO CREAT A SIMPLE SQUARE USING TURTLE IN PYTHON & LEARN TO FILL COLOR IN IT

=============================================================
LINK OF LAST VIDEO :-
   • how to make flower type circle spiral with...  
=============================================================
LINK OF MY BACKGROUND MUSIC:-
   / wearefrequency  
=============================================================
import turtle # turtle library imported

t = turtle.Turtle() # here we are creating a turtle object

t.speed(3) # we have defined speed for our turtle pointer
t.pensize(3) # we have defined size for our turtle pointer
t.color("cyan") # we have defined color for our turtle pointer

wn = turtle.Screen() # wn is windows which is accepted as screen of turtle
wn.bgcolor("black") # windows background color is black

t.begin_fill() # we are starting to fill color
t.fillcolor("yellow") # we have filled color yellow

for i in range(4): # for loop for repeating block 4 times
t.fd(100) # command for turtle to go 100 pixels forward
t.lt(90) # command for turtle to turn 90 degree left

t.end_fill() # we are stopping turtle to fill yellow color

turtle.done() # command to keep screen visible
============================================================
guys if this code does'nt work ,remove t. from everywhere
ex:-remove t. from (t.fd)
after removing it will be:- fd(100)
============================================================
guys you can even use different color and different size(in px) as you wish
============================================================
THANK YOU VIEWERS FOR WATCHING MY VIDEO😃😃👍
============================================================
DO LIKE IF REALLY ENJOYED👍👍😃😃
============================================================
PLEASE SUBSCRIBE AND GIVE THUMBSUP TO CHANNEL AND DONT
FORGET TO CLICK BELL ICON


On this page of the site you can watch the video online HOW TO MAKE SQUARE USING TURTLE IN PYTHON || EXPLAINED PROPERLY with a duration of hours minute second in good quality, which was uploaded by the user code with PK 26 May 2021, share the link with friends and acquaintances, this video has already been watched 153 times on youtube and it was liked by 22 viewers. Enjoy your viewing!