Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Sirkel:
- def __init__(self, radius):
- self.radius = radius
- def omkrets(self):
- return 2*3.14*self.radius
- def areal(self):
- return 3.14*self.radius**2
- for r in range(1,5):
- sirkel = Sirkel(r)
- print("Radius {} : omkrets = {} , areal = {} ".format(r,sirkel.omkrets(),sirkel.areal()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement