Please answer it in Python Write a function colonne polygone(nb poly dimension) that draws nb poly polygons on the same column, starting with a triangle and increasing the number of sides by 1 each...


Please answer it in Python<br>Write a function colonne polygone(nb poly dimension) that draws nb poly polygons on the same<br>column, starting with a triangle and increasing the number of sides by 1 each time. The length on the<br>side of the polygons must always be equal to the dimension. diameter polygone functions to shift<br>your cursor d + 5 downwards between two successive polygons, where d denotes the diameter of<br>the polygon that has just been drawn.<br>paving(6,4,20)<br>-function of square<br>def square (side):<br>for i in range(4):<br>t.forward(side)<br>t.right(90)<br>-function of polygon<br>def polygon (nb_sides, dimension):<br>for i in range (nb_sides):<br>t.forward (dimension)<br>t.right (360/nb_sides)<br>-Diameter of polygon<br>def diameter_polygon (nb_sides, dimension):<br>return dimension/ (math.sin (math.pi/nb_sides))<br>>ロ<br>>ロ○○○<br>DO0000<br>

Extracted text: Please answer it in Python Write a function colonne polygone(nb poly dimension) that draws nb poly polygons on the same column, starting with a triangle and increasing the number of sides by 1 each time. The length on the side of the polygons must always be equal to the dimension. diameter polygone functions to shift your cursor d + 5 downwards between two successive polygons, where d denotes the diameter of the polygon that has just been drawn. paving(6,4,20) -function of square def square (side): for i in range(4): t.forward(side) t.right(90) -function of polygon def polygon (nb_sides, dimension): for i in range (nb_sides): t.forward (dimension) t.right (360/nb_sides) -Diameter of polygon def diameter_polygon (nb_sides, dimension): return dimension/ (math.sin (math.pi/nb_sides)) >ロ >ロ○○○ DO0000

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here