Web Analytics

Python tuple.count() Method

Tuple Method Count

The count() method returns the number of times a specified value appears in the tuple.

Syntax

tuple.count(value)

Parameters

Parameter Description
value Required. The item to search for

Return Value

An integer, the number of times the value appears in the tuple.

Example

Using the count() method:

Output
Click Run to execute your code

Related Functions