Python - Exception Handling Fundamentals
Consider this code:
What will
def safe_divide(a, b):
try:
return a / b
except ZeroDivisionError:
return 'Cannot divide by zero'
except TypeError:
return 'Invalid input type'What will
safe_divide('10', 2) return?