What does count() function do in python tuples?

31. What does count() function do in python tuples?

  1. It gives you the sum of the entire tuple
  2. It counts the occurrence of an element
  3. It gives the sum of all the integers present inside the tuples

Answer: B) It counts the occurrence of an element

Explanation:

The count() functions help us to find the total occurrence of a particular element inside a tuple.

Comments and Discussions!

Load comments ↻






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