How to count the occurrence of any item in a list with Python

1 Answer

0 votes
programming = ['Python', 'C#', 'Java', 'C', 'PHP', "C++", "Java", "C#"]

c = programming.count("C#")

print(c)

'''
run:

2

'''

 



answered Sep 23, 2017 by avibootz
...