Teil 6 "Objekte ist neu

Repository aufgeräumt.
This commit is contained in:
2023-02-24 06:41:05 +01:00
parent c21159f36f
commit 3d8cb9128d
34 changed files with 196 additions and 0 deletions

14
teil3/kommentare.py Normal file
View File

@@ -0,0 +1,14 @@
#math Package importieren
import math
#PI = 3.1415
# berechnet den Flächeninhalt eines Kreises
# mit dem Radius r
# Parameter: r - Radius des Kreises
def berechne_flaecheninhalt(r):
a = math.pi * r**2
return a
flaeche = berechne_flaecheninhalt(10)
print(f"Der Flächeninhalt beträgt: {flaeche}")