निम्नलिखित बिट कोड का उत्पादन क्या होगा?
What would the following bit of code produce?
List = [“yellow” , “red” , “green” ,“pink”]
del list[2]
print(list)
A)
B)
C)
D)
Explanation:
The del list[2]
removes the item at index 2, which is "green"
. The resulting list will be ["yellow", "red", "pink"]
.
Answer: (D) ["yellow", "red", "pink"]