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

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

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

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!