Skip to content

Find the frequency of a given sentence "There is something new". And store the output into a text file with no crash. Tips: Use try, except clause.

Notifications You must be signed in to change notification settings

MizanMustakim/word-frequency-in-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

word frequency in python

Find the frequency of a given sentence "There is something new". And store the output into a text file. Write a code in Python with no crash.

Hints: Use try, except clause. And ignore the empty string.

Expected output:

        e : 4
        h : 2
        i : 2
        s : 2
        n : 2
        T : 1
        r : 1
        o : 1
        m : 1
        t : 1
        g : 1
        w : 1

About

Find the frequency of a given sentence "There is something new". And store the output into a text file with no crash. Tips: Use try, except clause.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages