logo

Crowdly

Browser

Add to Chrome

Compare los siguientes ejemplos: EJEMPLO 1 try : x = 5 y ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Compare los siguientes ejemplos:

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 xy. ¿Cuál de los dos bloques except es correcto?

0%
0%
More questions like this

Want instant access to all verified answers on aulaga.dis.ulpgc.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome