Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Circle:
- def __init__(self, r):
- self.r = r
- self.pi = 3.14
- def circumference(self): #Длина окружности
- return 2 * self.pi * self.r
- def area_circle(self): #Площадь круга
- return self.pi * self.r ** 2
- c1 = Circle(6)
- print(c1.circumference())
- print(c1.area_circle())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement