Advertisement

How to draw any shape in Python?

How to draw any shape in Python? This video shows you how to write a program that draws any type of polygon you know by changing the number of sides in the callsite.

PLEASE CLICK ON THIS LINK to stand a chance to win monthly prizes :

TASK: For this task you are required to write a single function named
drawShape(...) that draws a shape with the number of sides, and size, specified by
parameters passed into the function. Your function should take in 3 variables which are:
● A turtle.
● The size of the sides of a shape.
● The number of sides the shape is made up of.

#Python,Tutorial,How to draw an octagon in Python?,how to draw shapes in python?,Shapes in python,

Post a Comment

0 Comments