PYTHON TURTLE: STAR

in LeoFinance2 years ago

Hello everyone, I wish to be sharing my skill, the little I know in programming with my friends here.

Without wasting much of our time, I want to give a brief explanation of the screenshot we have below

Name.Star turtle
LanguagePython
---------------------------
Version3.10

Code Explanation:

Import turtle
This is a python function to call a module

Color ("black","yellow")
Defining the color of the turtle

begin_fill()
Activating filling operation on the turtle

While true:
Incrementing the loop

If statement:
Giving a condition

Break
Breaking out from the loop

End fill()
Used to fill the shapes after the begin_fill()

Screenshot_20221012-191416.jpg

OUTPUT:
Screenshot_20221012-191232_1.jpg

I wish to be sharing more of my skills here with more detailed explanation.
This is just the beginning