किसी सूची में कोई मान मौजूद है या नहीं, इसकी जांच करने का निम्नलिखित में से कौन सा सही तरीका है?
Which of the following is the correct way to check if a value exists in a list?
A
list.contains(value)
B
list.index(value)
C
list.has(value)
D
value in list
Explanation
Correct Answer: D) value in list