-
Notifications
You must be signed in to change notification settings - Fork 72
Kamwar/lesson 13 #675
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
base: master
Are you sure you want to change the base?
Kamwar/lesson 13 #675
Conversation
I corrected errors and try to join two commits
|
|
||
| def distance(point1, point2): | ||
| return math.sqrt((point1.x - point2.x) ** 2 | ||
| + (point1.y - point2.y) ** 2) |
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.
W503 line break before binary operator
| print("the Point doesn't lay in or on the boundary of the circle.") | ||
|
|
||
| if rect_in_circle(circle, rectangle): | ||
| print("the Rectangle lies entirely in or on the boundary of the circle.") |
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.
E501 line too long (81 > 79 characters)
| if rect_in_circle(circle, rectangle): | ||
| print("the Rectangle lies entirely in or on the boundary of the circle.") | ||
| else: | ||
| print("the Rectangle doesn't lay entirely in or on the boundary of the circle.") |
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.
E501 line too long (88 > 79 characters)
| def create_dictionary(object): | ||
| new_dictionary = object.__dict__ | ||
| for i in new_dictionary.keys(): | ||
| if isinstance(new_dictionary[i],int): |
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.
E231 missing whitespace after ','
| for i in new_dictionary.keys(): | ||
| if isinstance(new_dictionary[i],int): | ||
| print("key=", i, "value=", new_dictionary[i]) | ||
| elif isinstance(new_dictionary[i],float): |
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.
E231 missing whitespace after ','
|
|
||
|
|
||
| def main(): | ||
| auto = Car("fiat", "white", 1/2) |
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.
E226 missing whitespace around arithmetic operator
@kamwar Pleas check