Home »
Python »
Python List MCQs
What will be the output of the following code? | List Que. 29
29. What will be the output of the following code?
L1=[1,276,986,1783]
Print(276 in L1)
- YES
- Error
- True
- False
- 276
Answer: C) True
Explanation:
print (element in list_name) will give you true if the particular element is there in the list else it will return you false.