-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Difference of squares: sync expected test results and input data with problem-specifications #1791
Difference of squares: sync expected test results and input data with problem-specifications #1791
Conversation
@@ -1,6 +1,7 @@ | |||
import unittest | |||
|
|||
from difference_of_squares import difference, square_of_sum, sum_of_squares | |||
from difference_of_squares import difference_of_squares, \ | |||
square_of_sum, sum_of_squares |
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.
It is preferable to use parenthesis instead of backslashes for multiline imports. Example:
from difference_of_squares import (
difference_of_squares,
square_of_sum,
sum_of_squares,
)
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.
Ooops. I did not see this, or I wouldn't have closed this and deleted the branch. I am an idiot. :P Will re-open and correct!
…oding standards. Also corrected mis-named function in exercise stub.
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.
Minor nitpick.
Co-Authored-By: Corey McCandless <[email protected]>
Merged; thanks for working on this! |
Part of #1762
example.py
to conform withcanonical-data.json
.example.py
to use the formulas from https://brilliant.org/wiki/sum-of-n-n2-or-n3/, rather than loops.example.py
and exercise stub to number from count.