Example & Tutorial understanding programming in easy ways.

How we can find the occurrence of the item in list in Python ?

program:

l=[1,2,3,1,2,3,5,1]

print(l.count(1))

print(l.count(2))

print(l.count(5))

output:

3

2

1

Read More →