This commit is contained in:
alstergym
2026-09-10 09:39:54 +02:00
parent a9e1fdd7be
commit 643c59ca7d
5 changed files with 197 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
class Fahrzeug:
def __init__(self, name):
self.name = name
self.geschwindigkeit = 0
def __str__(self):
return("Das Fahrzeug heißt "+ self.name +"und kann "+ str(self.geschwindigkeit) +"km/h schnell fahren.")