Skip to content
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

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

Python-home-challenge#01-MaorWeiss #14

wants to merge 6 commits into from

Conversation

MaorW
Copy link

@MaorW MaorW commented Dec 1, 2019

#10 @AviadP
I accidentally deleted this repo and created a new one with the same files. A terrible mistake

print(f"which has appeared {biggest_counting} times.")

def read_file():
with open('/home/$USER/, 'r') as tmp_file:
Copy link
Contributor

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():
Copy link
Contributor

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):
Copy link
Contributor

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 #
Copy link
Contributor

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()
Copy link
Contributor

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

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