If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Identify edge cases

Problem

Melina is writing a function to classify strings based on length.
def classify_string(text):
    if len(text) <= 1:
        return "short"
    elif len(text) < 5:
        return "medium"
    else:
        return "long"
To test that the function works as expected, Melina wants to call the function with an input that covers each distinct possible behavior.
Which set of inputs best tests the function?
Choose 1 answer: