Python Program to Count the Frequency of an Element of a List (Both input from user)

preview_player
Показать описание
For more videos regarding Computer Science, visit this:
👇👇👇

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:
break
else:
print(n,'not found in list')
break

Music Credits:
Music: Sunset Strip

Like, Share and SUBSCRIBE
Рекомендации по теме
Комментарии
Автор

It's too easy than that I saw in my book...thnx a lot❤❤

sneharani