Kodewick
Start learning →
Starter←→0 / 100

Find the cat photos

#031StarterStrings2 min

In the photo album, every cat photo's name starts with cat. Write is_cat_photo(filename) to return True if the name starts with cat, otherwise False. Any case counts (CAT_box.png too).

Examples
is_cat_photo("cat_sofa.jpg")→True
is_cat_photo("dog_park.jpg")→False
main.py
def is_cat_photo(filename):
    # your code here: in lower case, does it start with "cat"
    return False
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.