Created
June 4, 2022 10:05
-
-
Save wo0dyn/d22d2e8b5a17cbc622c64be05be7bbf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bee: | |
def __str__(self): | |
return "🐝" | |
class Dog: | |
def stepped_on(self, something): | |
... | |
if isinstance(something, Bee): | |
raise SystemExit("😱🥴") | |
def __str__(self): | |
return "🐶" | |
my_dog = Dog() | |
a_bee = Bee() | |
my_dog.stepped_on(a_bee) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment