Question: Lab04 - Exercise - Circle (1 point) Complete the class Circle in circle.py that: has one attributer (for radius) and two instance methods: o circumference

 Lab04 - Exercise - Circle (1 point) Complete the class Circle
in circle.py that: has one attributer (for radius) and two instance methods:
o circumference (which returns the circumference of the circle) o area (which

Lab04 - Exercise - Circle (1 point) Complete the class Circle in circle.py that: has one attributer (for radius) and two instance methods: o circumference (which returns the circumference of the circle) o area (which returns the area of the circle). A basic test has been written in circle_test.py. Write more tests in this file. Ensure your tests have 100% coverage. Ensure your code is pylint compliant. circle.py 33 Bytes Go import math 1 2 3 4. class Circle: pass circle_test.py 150 Bytes C from circle import Circle 1 2 3 4 5 6 def test_small(): C = Circle(3) assert (round(c.circumference(), 1) == 18.8) assert (round(c.area(), 1) == 28.3)

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!