Write a program to find the number of times element 8 occurs in a list.
Answers
Answered by
4
from random import randrange
l = [randrange(1, 10) for n in range(69)]
print(l)
print("\nOccurences of 8:", len([n for n in l if n == 8]))
Answered by
0
Answer:
Using python:
Similar questions