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