Skip to content

Update sum.py#7

Open
IuriyLeb wants to merge 1 commit intoagbragin:masterfrom
IuriyLeb:master
Open

Update sum.py#7
IuriyLeb wants to merge 1 commit intoagbragin:masterfrom
IuriyLeb:master

Conversation

@IuriyLeb
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@agbragin agbragin left a comment

Choose a reason for hiding this comment

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

The target change is here, but the change in assert statement makes code invalid. The overall score, therefore, is 1.

Comment thread sum.py
"""
assert (is_number(a) and is_number(b)), 'Both addends should be numbers'
return a - b
assert (is_number(a) and is_number(b)),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why did you remove the second expression from the assert? This change makes the code syntactically invalid.

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