filmov
tv
Python – Draw Star Using Turtle Graphics - python coding || star code || python programing 🥳🤘

Показать описание
Hi, i am PYTHON_CODER
I am new youtube user
my first python code
star python code
#starwars
#shorts
#viral
#programming
#coder
#coding
#edit
#cse
#pythone
____________________________________________________________________________________________
In this article, we will learn how to make a Star using Turtle #Graphics_in_Python. For that let’s first know what is #Turtle_Graphics.
____________________________________________________________________________________________
The turtle module can be used in both object-oriented and procedure-oriented ways.
Some commonly used methods are:
#forward(length): moves the pen in the forward direction by x unit.
#backward(length): moves the pen in the backward direction by x unit.
#right(angle): rotate the pen in the clockwise direction by an angle x.
#left(angle): rotate the pen in the anticlockwise direction by an angle x.
#penup(): stop drawing of the turtle pen.
#pendown(): start drawing of the turtle pen.
____________________________________________________________________________________________
For a drawing, a #Star_executes a loop 5 times. In every iteration move the turtle 100 units forward and move it right 144 degrees. This will #make_up_angle 36 degrees inside a star. 5 iterations will make up a #Star_perfectly.
____________________________________________________________________________________________
♣ #Import_turtle
♣ #Set_window_screen
♣ #Set_color_of_the_turtle
♣ #Form_a_star
♣ #Fill_the_star_with_the_color
____________________________________________________________________________________________
I am new youtube user
my first python code
star python code
#starwars
#shorts
#viral
#programming
#coder
#coding
#edit
#cse
#pythone
____________________________________________________________________________________________
In this article, we will learn how to make a Star using Turtle #Graphics_in_Python. For that let’s first know what is #Turtle_Graphics.
____________________________________________________________________________________________
The turtle module can be used in both object-oriented and procedure-oriented ways.
Some commonly used methods are:
#forward(length): moves the pen in the forward direction by x unit.
#backward(length): moves the pen in the backward direction by x unit.
#right(angle): rotate the pen in the clockwise direction by an angle x.
#left(angle): rotate the pen in the anticlockwise direction by an angle x.
#penup(): stop drawing of the turtle pen.
#pendown(): start drawing of the turtle pen.
____________________________________________________________________________________________
For a drawing, a #Star_executes a loop 5 times. In every iteration move the turtle 100 units forward and move it right 144 degrees. This will #make_up_angle 36 degrees inside a star. 5 iterations will make up a #Star_perfectly.
____________________________________________________________________________________________
♣ #Import_turtle
♣ #Set_window_screen
♣ #Set_color_of_the_turtle
♣ #Form_a_star
♣ #Fill_the_star_with_the_color
____________________________________________________________________________________________