Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
261 B

from math import pi as pi
class Kreis:
def __init__(self, radius):
self.radius = radius
def durchmesser(self):
return self.radius * 2
def umfang(self):
return self.durchmesser() * pi
def flaeche(self):
return self.radius** 2 * pi