The statement print(words[len(words)]) will raise an exception. What should be placed in the blank so that this exception will be caught and the error message will be displayed?
A,B,C,D?

The statement printwordslenwords will raise an exception What should be placed in the blank so that this exception will be caught and the error message will be class=

Respuesta :

r3t40

The answer D.

Put the except IndexError to catch IndexError which gets raised when the statement gets executed.