How to draw any shape using python turtle (simplest way to learn programming)

Опубликовано: 03 Апрель 2026
на канале: Abdalla Gubara
194
3

For python tutoring: http://pythontutoring.tk/
.
We have used the power of variables to do powerful stuff like drawing different shapes using the same piece of code.
.
We passed the number of members in a shape to a function that does all the magic for us.
.
The number of members determines the number of times we run our while loop according to the shape.
.
And we also calculate the angle by dividing 360 by the number of members of the shape.
.
In the next video, we will cover how to let the user choose what shape they want to draw and also how to make a circle out of any shape, so stay tuned.
.
If you want to learn more follow me on social media @:

Instagram :   / jubara_abdallah  
LinkedIn :   / abdalla-ashraf-23a079153  
Github : https://github.com/abdallahash
My site : https://abdallah-ashraf.herokuapp.com/

#python #turtle #programming #learning