✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
EJEMPLO 1
try: x = 5 y = 'x' print(x + y)except err as TypeError: print(err)
EJEMPLO 2
try: x = 5 y = 'x' print(x + y)except TypeError as err: print(err)
En ambos se produciría una excepción de tipo TypeError cuando se intentase aplicar el operador + a los operandos x e y. ¿Cuál de los dos bloques except es correcto?