i just added non-string error
def fun(str1): if not isinstance(str1, str): raise ValueError("Input must be a string") return str1.upper()
Loading collection data...