-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
triangle: Added parameters to exercise placeholder #761
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
Conversation
exercises/triangle/triangle.py
Outdated
@@ -3,5 +3,8 @@ class TriangleError(Exception): | |||
|
|||
|
|||
class Triangle(object): | |||
def __init__(self): | |||
def __init__(self, x, y, z): |
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.
Honestly, I don't like single character names. Could you change them to something more meaningful
A good Python style guide from Google - https://google.github.io/styleguide/pyguide.html?showone=Naming#Naming
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.
what do you propose? I have two suggestions, edge_1, edge_2, edge_3 or side_a, side_b, side_c
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.
Thanks for the PR!
Please take a look at my comment
19a000a
to
be30622
Compare
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.
👍
@rozuur thanks for your PR Just for future reference a guide of how to write good commit messages - https://chris.beams.io/posts/git-commit/#seven-rules |
Thanks @m-a-ge |
fixes #647