import collections
text=input("Enter a paragraph : ").lower()
text="python is good python is fun"
list=text.split()
print(list)
freq={}
for word in list:
freq[word]=freq.get(word,0)+1
freq=collections.Counter(list)
print(freq)
max_count=0
max_used_word=''
for key,value in freq.items():
print(key,value)
if(value greater than max_count):
max_count=value
max_used_word=key
print(f"\n Most used word: {max_used_word} appearing for {max_count} ")
On this page of the site you can watch the video online 3. Word Frequency Counter | Python with a duration of hours minute second in good quality, which was uploaded by the user Azure Content : Annu 12 July 2025, share the link with friends and acquaintances, this video has already been watched 694 times on youtube and it was liked by 23 viewers. Enjoy your viewing!