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

Publicado el: 26 mayo 2021
en el canal de: 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


En esta página del sitio puede ver el video en línea HOW TO MAKE SQUARE USING TURTLE IN PYTHON || EXPLAINED PROPERLY de Duración hora minuto segunda en buena calidad , que subió el usuario code with PK 26 mayo 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 153 veces y le gustó 22 a los espectadores. Disfruta viendo!