Open
Conversation
stickler-ci
reviewed
Jul 22, 2018
|
|
||
|
|
||
| def point_in_circle(point, circle): | ||
| if (point.x - circle.center.x) * (point.x - circle.center.x) + (point.y - circle.center.y) * ( |
Contributor
There was a problem hiding this comment.
E501 line too long (98 > 79 characters)
| rectangle = Rectangle(20, 10, Point(120, 100)) | ||
| print("Point:" + str(point)) | ||
| print("Is point inside the circle? " + str(point_in_circle(point, circle))) | ||
| print("Is rectangle inside the circle? " + str(rect_in_circle(rectangle, circle))) |
Contributor
There was a problem hiding this comment.
E501 line too long (86 > 79 characters)
| print("Point:" + str(point)) | ||
| print("Is point inside the circle? " + str(point_in_circle(point, circle))) | ||
| print("Is rectangle inside the circle? " + str(rect_in_circle(rectangle, circle))) | ||
| print("Is rectangle overlapping the circle? " + str(rect_circle_overlap(rectangle, circle))) |
Contributor
There was a problem hiding this comment.
E501 line too long (96 > 79 characters)
| book1 = Books("Uwiklanie", "Zygmunt Miloszewski", 2007) | ||
| book2 = Books("Uwiklanie", "Zygmunt Miloszewski", 2007) | ||
| book3 = Books("Hasztag", "Remigiusz Mroz", 2018) | ||
| print("Book1: author: {}, title: {}, year: {}".format(book1.author, book1.title, book1.year)) |
Contributor
There was a problem hiding this comment.
E501 line too long (97 > 79 characters)
| book2 = Books("Uwiklanie", "Zygmunt Miloszewski", 2007) | ||
| book3 = Books("Hasztag", "Remigiusz Mroz", 2018) | ||
| print("Book1: author: {}, title: {}, year: {}".format(book1.author, book1.title, book1.year)) | ||
| print("Book2: author: {}, title: {}, year: {}".format(book2.author, book2.title, book2.year)) |
Contributor
There was a problem hiding this comment.
E501 line too long (97 > 79 characters)
| book3 = Books("Hasztag", "Remigiusz Mroz", 2018) | ||
| print("Book1: author: {}, title: {}, year: {}".format(book1.author, book1.title, book1.year)) | ||
| print("Book2: author: {}, title: {}, year: {}".format(book2.author, book2.title, book2.year)) | ||
| print("Book3: author: {}, title: {}, year: {}".format(book3.author, book3.title, book3.year)) |
Contributor
There was a problem hiding this comment.
E501 line too long (97 > 79 characters)
| print("Book2: author: {}, title: {}, year: {}".format(book2.author, book2.title, book2.year)) | ||
| print("Book3: author: {}, title: {}, year: {}".format(book3.author, book3.title, book3.year)) | ||
| attributes_list = ['title', 'author', 'year'] | ||
| print("Are book 1 and book 2 equal? " + str(shallow_compare(book1, book2, attributes_list))) |
Contributor
There was a problem hiding this comment.
E501 line too long (96 > 79 characters)
| print("Book3: author: {}, title: {}, year: {}".format(book3.author, book3.title, book3.year)) | ||
| attributes_list = ['title', 'author', 'year'] | ||
| print("Are book 1 and book 2 equal? " + str(shallow_compare(book1, book2, attributes_list))) | ||
| print("Are book 1 and book 3 equal? " + str(shallow_compare(book1, book3, attributes_list))) |
Contributor
There was a problem hiding this comment.
E501 line too long (96 > 79 characters)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.