-
Notifications
You must be signed in to change notification settings - Fork 18
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
IshaanG/week1 #3
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,45 @@ | |||
import requests |
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.
You should consider adding Module/Class/Method and docstring as well.
It's easier for coders to understand what your module/class/method does.
Also how about sorting the import orders as well.
You can refer this: https://www.python.org/dev/peps/pep-0008/#imports
data_all.append(data) | ||
with open('data.json', 'w', encoding='utf-8') as f: | ||
json.dump(data_all, f, ensure_ascii=False, indent=4) | ||
|
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.
This method doesn't manipulate class properties or states. It might be a good idea to use @staticmethod
decorator.
What do you say?
Week-1/IshaanG/trackprice.py
Outdated
@@ -0,0 +1,42 @@ | |||
import spec |
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.
Add documentation and correct the import order here as well.
No description provided.