Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

HW4RonBiton #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

HW4RonBiton #4

wants to merge 2 commits into from

Conversation

ronbitonn
Copy link

No description provided.

HW4RonBitonPF.py Outdated
@@ -0,0 +1,9 @@
from collections import Counter

func = open("Hallelujah.txt", "r")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When opening file it is mandatory to close it when its no longer needed. you can use "close" method, but better implementation would be to use "with...open"

HW4RonBitonPF.py Outdated Show resolved Hide resolved
HW4RonBitonPF.py Outdated
@@ -0,0 +1,9 @@
from collections import Counter

func = open("Hallelujah.txt", "r")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is Better using full file path

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants