Skip to content

I completed the function “read_file_content” which accepts a filename as an argument and reads the text contained in that file and in turn, returns a string. I also completed the function “count_words” which uses “read_file_content” to read the text contained in “story.txt” and in turn, returns a dictionary whose keys are unique words, and their…

Notifications You must be signed in to change notification settings

eadewusic/Reading-Text-Files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Reading-Text-Files

I completed the function “read_file_content” which accepts a filename as an argument and reads the text contained in that file and in turn, returns a string.

I also completed the function “count_words” which uses “read_file_content” to read the text contained in “story.txt” and in turn, returns a dictionary whose keys are unique words, and their values are the count of those words in the text e.g {“as”:10, “would”:5}.

This is a Python project at Zuri training for the #I4GZuri Scholarship program

About

I completed the function “read_file_content” which accepts a filename as an argument and reads the text contained in that file and in turn, returns a string. I also completed the function “count_words” which uses “read_file_content” to read the text contained in “story.txt” and in turn, returns a dictionary whose keys are unique words, and their…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages