demo_ref_list_count2.py:
fruits = [1, 4, 2, 9, 7, 8, 9, 3, 1] x = fruits.count(9) print(x)
C:\Users\My Name>python demo_list_count2.py
2