Skip to content

Conversation

@Graheb
Copy link
Contributor

@Graheb Graheb commented Jul 18, 2018

@kamwar Pleas check


def distance(point1, point2):
return math.sqrt((point1.x - point2.x) ** 2
+ (point1.y - point2.y) ** 2)
Copy link
Contributor

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.")
Copy link
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 (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.")
Copy link
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 (88 > 79 characters)

def create_dictionary(object):
new_dictionary = object.__dict__
for i in new_dictionary.keys():
if isinstance(new_dictionary[i],int):
Copy link
Contributor

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

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

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

    one
@Graheb Graheb force-pushed the kamwar/lesson_13 branch from 50db456 to 3c7459d Compare July 18, 2018 11:17
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