Important Python Mcqs

Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?

(a) Error

(b) None

(c) 25

(d) 2Read

Answer:

(c) 25

Explanation:

-1 corresponds to the last index in the list. That’s why 25 is the right answer!

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?