Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
count
count
Return the number of times x appears in the list.
Python 3.13
list
.
count
(
x
)
Examples
Python 3.13
>>
>
[
1
,
2
,
2
,
3
]
.
count
(
2
)
2