Home »
Python »
Python Tuples MCQs
What will be the output of the following code? | Tuples Que. 34
34. What will be the output of the following code?
t1=("Can","you","can","a","can","as","a","canner","can","can","a","can")
print("can" in t1)
- Yes
- True
- False
- 5
Answer: B) True
Explanation:
In Keyword returns the result in true or false, If the particular element is there in the list then it returns you the true, else false.