solutions

Return value error if string is too long

Write a function that takes a string. If it is greater than 10 characters long, throw a ValueError. Otherwise, return False.

string_too_long('tiny') == False
string_too_long('indubitably') == ValueError

Test Cases

tests

[]