Solutions will be available when this assignment is resolved, or after a few failing attempts.

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


def string_too_long(): pass