-
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
Struggle #7
base: master
Are you sure you want to change the base?
Struggle #7
Conversation
@@ -95,6 +103,12 @@ def mean_center(points): | |||
""" | |||
x = None | |||
y = None | |||
for point in points: | |||
x += [0] | |||
y += [1] |
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.
These two lines say, add x (or y) to my list. I think what you want to do is add x (or y) to the appropriate point coordinate, e.g. point[0], or point[1].
return gj | ||
with open(input_file, 'r') as f: | ||
gj = json.load(f) | ||
return gj |
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.
bump this return so that is is indented under the def
and resubmit. Should be good to go then.
No description provided.