Home »
Python »
Python List MCQs
What will be the output of the following code? | List Que. 15
15. What will be the output of the following code?
L1=["apple","hello",1,2,3,"hello world","banana",["Car","Bike",1,2,3,4]] ;
print(L1[-2])
- 3
- Hello
- Banana
- 1
Answer: C) Banana
Explanation:
The -2 index denotes the second last element of the list.