From 8966f20ccb9897282d2ac7c174b87934fc38fc15 Mon Sep 17 00:00:00 2001 From: jwansek Date: Wed, 9 Feb 2022 15:43:06 +0000 Subject: started working on monitoring execution environments --- ExampleSubmission/animals.py | 50 +++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 24 deletions(-) (limited to 'ExampleSubmission/animals.py') diff --git a/ExampleSubmission/animals.py b/ExampleSubmission/animals.py index d32d6ff..924c6fb 100644 --- a/ExampleSubmission/animals.py +++ b/ExampleSubmission/animals.py @@ -1,24 +1,26 @@ -import datetime - -class Animal: - def __init__(self): - self.birthday = datetime.datetime.now() - - def move(self): - return "*moves*" - -class Dog(Animal): - def speak(self): - return "woof" - -class Cat(Animal): - def speak(self): - return "meow" - -class Kitten(Cat): - """nyaa~~~ - """ - def speak(self): - return "meow (but cuter)" - -print() \ No newline at end of file +import datetime + +class Animal: + def __init__(self): + self.birthday = datetime.datetime.now() + + def move(self): + return "*moves*" + +class Dog(Animal): + def speak(self): + return "woof" + +class Cat(Animal): + def speak(self): + return "meow" + +class Kitten(Cat): + """nyaa~~~ + """ + def speak(self): + return "meow (but cuter)" + +kitten = Kitten() +with open("animals.txt", "w") as f: + f.write(kitten.speak()) \ No newline at end of file -- cgit v1.2.3