Skip to content

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
@@ -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

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

Successfully merging this pull request may close these issues.

2 participants