What is printed? python c = ["Karachi", "Quetta", "Lahore"] print(c[-1])
- Error
- Lahore
- Karachi
- 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
B) Lahore
Index −1 is the last item. SLO CS-11-C-05
Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise