I do not understand what to do
What is this asking me?? I do not understand what it wants me to do. please help!
Sigurd Melsom6,107 Points
They want you to use try except to check if num can be parsed to int. If not to return the value of num multiplied by the length of num.. Something like this might work.
def squared(num): try: return int(num) ** 2 except ValueError: return num * len(num)