Home »
Python »
Python Tuples MCQs
What is the output of the following code? | Tuples Que. 32
32. What is the output of the following code?
t1=("Can","you","can","a","can","as","a","canner","can","can","a","can")
print(t1.count("can"))
- 5
- 4
- 3
- 1
Answer: A) 5
Explanation:
A total of 5 times the "can" word has occurred inside a tuple.