Python - Advanced Exception Handling
What will be the output of this code?
def check_age(age):
if age < 18:
raise ValueError("Too young")
return "Access granted"
try:
print(check_age(16))
except ValueError as e:
print(e)