Direction: Choose the correct option
Q1.
How do you create a list in Python?
Direction: Choose the correct option
Q2.
What is the output of `len([1,2,3])`?
Direction: Choose the correct option
Q3.
How do you access the last element of a list `lst`?
Direction: Choose the correct option
Q4.
What does `lst.append(5)` do?
Direction: Choose the correct option
Q5.
How do you insert an element at index 0?
Direction: Choose the correct option
Q6.
What is the difference between `extend` and `append`?
Direction: Choose the correct option
Q7.
What does `lst.pop()` return?
Direction: Choose the correct option
Q8.
How do you remove an element by value?
Direction: Choose the correct option
Q9.
What is the output of `[1,2,3] + [4,5]`?
Direction: Choose the correct option
Q10.
What does `lst = [1,2,3]; lst[1:2] = [4,5]` produce?
