For more videos regarding Computer Science, visit this:
👇👇👇
/playlist/PL00jt1KDlYErZAztzu9oKF9Wn9PcAsOGs
PROGRAM CODE:
👇👇👇
# WAP TO COUNT THE FREQUENCY OF AN ELEMENT FROM A LIST WHERE LIST AND ELEMENT ARE TO BE ENTERED BY THE USER
lst= list(input('enter the list:'))
n=input('enter the element to count frequency')
for i in lst:
if (n in lst)==True:
print(lst.count(n))
break
else:
print(n,'not found in list')
break
Music Credits:
Music: Sunset Strip
Musician: music by audionautix.com
License: https://creativecommons.org/licenses/by/4.0/legalcode
Like, Share and SUBSCRIBE
Category
Show more
Comments - 3
Related videos for Python Program to Count the Frequency of an Element of a List (Both input from user):