-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python-home-challenge#01-MaorWeiss #14
base: master
Are you sure you want to change the base?
Conversation
print(f"which has appeared {biggest_counting} times.") | ||
|
||
def read_file(): | ||
with open('/home/$USER/, 'r') as tmp_file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you test this code? i dont think it will work with this path
print(f"The most recurring word in the file is '{the_most_recurring_word}'") | ||
print(f"which has appeared {biggest_counting} times.") | ||
|
||
def read_file(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to get better use of your function, file name should be an argument
return execute_file | ||
|
||
|
||
def spilt_file(file): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var name file - you are not use file here, it is string, so var name might be misleading
|
||
def printing_the_recurring_word(split_words_from_file): | ||
biggest_counting = 0 | ||
# Creating variable for keeping the recurring value from the file # |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz fix indetation
printing_the_recurring_word(my_split_file) | ||
|
||
|
||
main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz add "if name" condition here
#10 @AviadP
I accidentally deleted this repo and created a new one with the same files. A terrible mistake