What is printed? python c = ["Karachi", "Quetta", "Lahore"] print(c[-1])

  1. Error
  2. Lahore
  3. Karachi
  4. Quetta
Answer

B) Lahore

Index −1 is the last item. SLO CS-11-C-05

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise