Question: Python Question 1. Rewrite the polygon( function to use a while loop instead of a for loop. from turtle import * 11 def polygon(num_sides, length):

 Python Question 1. Rewrite the polygon( function to use a while

Python Question 1. Rewrite the polygon( function to use a while loop instead of a for loop. from turtle import * 11 def polygon(num_sides, length): """ Draw num_sides-sided polygon with given side length for i in range(num_sides): forward(length) left(360um_sides) TE def main(): "Draw polygons with 3-9 sides" for j in range(3, 10): polygon( , 80) exitonclick main(

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!