Teil 9: Typkonvertierung.

This commit is contained in:
2023-03-05 09:50:37 +01:00
parent 5512ec868c
commit c025b7fe47
12 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
class Anschrift:
def __init__(self, strasse, hausnummer, plz, ort):
self.strasse = strasse
self.hausnummer = hausnummer
self.plz = plz
self.ort = ort
def __str__(self):
return f'{self.strasse} {self.hausnummer} \n {self.plz} {self.ort}'