Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- class Circle:
- def __init__(self, radius = 1):
- self.radius = raduis
- def getPerimeter(self):
- return 2 * self.radius * math.pi
- def getArea(self):
- return self.radius * self.radius * math.pi
- def getRadius(self, radius):
- self.radius = radius
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement