Question: plz use python to fill up the rest of rows thanks. Suppose that you are a teacher and you've set the following problem for your

plz use python to fill up the rest of rows thanks. Supposeplz use python to fill up the rest of rows thanks.

Suppose that you are a teacher and you've set the following problem for your students: Write a function get_area(radius) which takes a radius as a parameter and returns the area of a circle. Round the result to the nearest integer. The program should return "Invalid input" when the radius is negative and "Not a circle" when the radius is 0. The area of a circle is given by the formula: T*p2. You have to write the tests for this function in the answer box below. Each test should consist of a bit of code that should be run together with the expected output ('Expected Result'). Your test code should call the function get_area() which we supply. Do not include a get_area() function in your test. Answer: (penalty regime: 0%) Reset answer Test Expected Result print(get_area(3.5)) 39 print(get_area(-3.5)) Invalid input print(get_area(0)) Not a circle

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!