Python - Advanced Exception Handling
Consider this code:
def check_value(val):
try:
result = 10 / val
except ZeroDivisionError:
return "Cannot divide by zero"
else:
return f"Result is {result}"
print(check_value(0))
print(check_value(5))
What is the output?