Result Size:
625 x 571
demo_ref_list_count.py:
fruits = ["apple", "banana", "cherry"] x = fruits.count("cherry") print(x)
x
fruits
=
[
"apple"
,
"banana"
,
"cherry"
]
x
=
fruits
.
count
(
"cherry"
)
print
(
x
)
C:\Users\My Name>python demo_list_count.py
1