https://github.com/allenkeys/read-file
A python based program that read the content of a file saved in .txt and also count the occurrence of each specific word while excluding special characters without the use of python packages.
https://github.com/allenkeys/read-file
Last synced: 2 months ago
JSON representation
A python based program that read the content of a file saved in .txt and also count the occurrence of each specific word while excluding special characters without the use of python packages.
- Host: GitHub
- URL: https://github.com/allenkeys/read-file
- Owner: Allenkeys
- Created: 2022-05-26T12:09:40.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-27T08:21:10.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T19:37:10.966Z (4 months ago)
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# READ FILE CONTENT PROGRAM
---
This program reads the content of a file saved in *.txt* and also count the occurence of every specific word in the text.1. **read_file_content(filename)** function
Takes an argument **filename** which is accessed, read and return as **string**.
2. **count_words()**This function access the return value of the *function* above and create a dictionary of specific words as keys and the number of occuren as values.