Question: Question 1 [10 marks]: Write a Python program that draws different shapes. First, write a function drawLine(length) that takes an input parameter number, length, and
![Question 1 [10 marks]: Write a Python program that draws different](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3b6f364da3_11566f3b6f30548d.jpg)


Question 1 [10 marks]: Write a Python program that draws different shapes. First, write a function drawLine(length) that takes an input parameter number, length, and draws one line of stars where the number of stars is equal to the input number length The function definition starts as follows: def drawLine(length): This function will be used in the program that you write to draw shapes. Write a program that draws one of three shapes depending on the users choice: a square, a rectangle or triangle. Your program will prompt the user to enter their choice of shape: 's' for square, r for rectangle, and 't for triangle. If a user enters a character that is not 's', r' or 't', the program should display a message indicating that the user's choice was an incorrect type of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
