From d86a1152d5a35e5a267c650342138476377c2c6b Mon Sep 17 00:00:00 2001 From: alstergym Date: Thu, 10 Sep 2026 10:12:51 +0200 Subject: [PATCH] 10.09. --- Avatar.py | 2 +- Mario.py | 10 +++------- README.md | 7 ++++++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Avatar.py b/Avatar.py index 7b5944a..100814a 100644 --- a/Avatar.py +++ b/Avatar.py @@ -6,7 +6,7 @@ class Avatar: self.fahrzeug = None def __str__(self): - return("Ich bin "+ self.name + " und fahre im " + str(self.fahrzeug)) + return("Ich bin "+ self.name) def fahrzeug_zuweisen(self,fahrzeug): self.fahrzeug = fahrzeug \ No newline at end of file diff --git a/Mario.py b/Mario.py index b81f140..e445774 100644 --- a/Mario.py +++ b/Mario.py @@ -20,8 +20,7 @@ print("Heute fahre ich sehr schnell") Pilzwagen = Fahrzeug("den Pilzwagen",9) motorrad = Fahrzeug("das Motorrad",9) Flieger = Fahrzeug("den Flieger",9) -print(motorrad) -print(Pilzwagen) + Autos = input("Welches Fahrzeug gehört dir?") if Autos == "Pilzwagen": @@ -34,12 +33,9 @@ else: - -Pilzwagen.fahren() - spieler.fahrzeug_zuweisen(wahl) mario.fahrzeug_zuweisen(Pilzwagen) toat.fahrzeug_zuweisen(motorrad) -print(spieler) -print(mario) +print(spieler + wahl) +print(mario + Pilzwagen) diff --git a/README.md b/README.md index 58b6b50..2d2d40d 100644 --- a/README.md +++ b/README.md @@ -1 +1,6 @@ -# MarioFINN \ No newline at end of file +# MarioFINN + + + +def fahren(self): + print("ich fahre") \ No newline at end of file