Skip to content

Lesson 13 solutions#694

Open
swietmon wants to merge 2 commits intojedzej:masterfrom
swietmon:adziu/lesson_13_objects_and_classes
Open

Lesson 13 solutions#694
swietmon wants to merge 2 commits intojedzej:masterfrom
swietmon:adziu/lesson_13_objects_and_classes

Conversation

@swietmon
Copy link
Copy Markdown
Contributor

No description provided.



def point_in_circle(point, circle):
if (point.x - circle.center.x) * (point.x - circle.center.x) + (point.y - circle.center.y) * (
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (96 > 79 characters)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants