If you call the index method to locate an item in a list and the item is

Question:

If you call the index method to locate an item in a list and the item is not found, this happens.

a. A ValueError exception is raised.

b. An InvalidIndex exception is raised.

c. The method returns −1.

d. Nothing happens. The program continues running at the next statement.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: