blob: 66692290d05ebeb4ee7977c632a4d85e377b3fad (
plain)
1
2
3
4
5
6
|
FLYING_THINGS = ["bird", "plane", "superman", "this example"]
def is_flying_animal(an_object):
is_flying = isinstance(an_object, Animal) and an_object.name in FLYING_THINGS
return is_flying
|