Python - Polymorphism and Dynamic Behavior
Identify the syntax error in this polymorphic function:
def transform(value):
if isinstance(value, list):
return value + [1]
elif isinstance(value, str):
return value.upper()
else
return None