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"))
  1. 5
  2. 4
  3. 3
  4. 1

Answer: A) 5

Explanation:

A total of 5 times the "can" word has occurred inside a tuple.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.