Advertisement
Guest User

Untitled

a guest
Mar 21st, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import math
  2.  
  3. class Circle:
  4.  
  5. def __init__(self, radius = 1):
  6. self.radius = raduis
  7.  
  8. def getPerimeter(self):
  9. return 2 * self.radius * math.pi
  10.  
  11. def getArea(self):
  12. return self.radius * self.radius * math.pi
  13.  
  14. def getRadius(self, radius):
  15. self.radius = radius
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement