Page 1 of 1

WRITE IN PYTHON Assume the density of the star is 2. The prompt asks for 2 functions for each shape. One using iteration

Posted: Tue Jul 12, 2022 8:04 am
by answerhappygod
WRITE IN PYTHON
Assume the density of the star is 2.
The prompt asks for 2 functions for each shape. Oneusing iteration one using recursion. Please help, thankyou!
Write In Python Assume The Density Of The Star Is 2 The Prompt Asks For 2 Functions For Each Shape One Using Iteration 1
Write In Python Assume The Density Of The Star Is 2 The Prompt Asks For 2 Functions For Each Shape One Using Iteration 1 (41 KiB) Viewed 106 times
TASK: Write a program named shapes.py that has two functions for generating convex and star regular polygons. Each function should be implemented by using iteration (a for loop) and recursion. It is optional to fill in your shapes. The function for generating polygons can be named polygon(size, n) and the function that generates stars can be named star(size, n), where size is the size of the polygon side (edge) and n is the number of sides (or angles).