Qusमान लीजिए लिस्ट [3, 4, 5, 20, 5, 25, 1, 3], है, listExample.pop(1) के बाद की लिस्ट1 क्या है।
A. [3, 4, 5, 20, 5, 25, 1, 3]
B. [1, 3, 3, 4, 5, 5, 20, 25]
C. [3, 5, 20, 5, 25, 1, 3]
D. [1, 3, 4, 5, 20, 5, 25]
Solution
C. [3, 5, 20, 5, 25, 1, 3]Explanation
pop() removes the element at the position specified in the parameter.
so it remove the value of index 1 which is 4 so after pop the list will be [3, 5, 20, 5, 25, 1, 3]