summaryrefslogtreecommitdiff
path: root/doc/data/messages/s/simplifiable-if-expression/good.py
blob: cfe7db28cf6eea778640e589c0dc4466168a8cc3 (plain)
1
2
3
4
5
6
7
8
9
FLYING_THINGS = ["bird", "plane", "superman", "this example"]


def is_flying_thing(an_object):
    return an_object in FLYING_THINGS


def is_not_flying_thing(an_object):
    return an_object not in FLYING_THINGS