donnemartin / donnemartin/interactive-coding-challenges
sum_two sample solution parameter
Open
needs-review
- Dominant language
- Python
- Stars
- 31.8k
- Forks
- 4.7k
- PR merge metrics
- No merged PRs in 30d
Description
For the sum_two_challenge notebook ([link](https://github.com/donnemartin/interactive-coding-challenges/blob/master/math_probability/sum_two/sum_two_challenge.ipynb)), the Solution class template only takes one parameter:
```
class Solution(object):
def sum_two(self, val):
# TODO: Implement me
pass
```
That should change to two parameters:
```
class Solution(object):
def sum_two(self, a, b):
# TODO: Implement me
pass
```
Otherwise a TypeError is raised with the message:
`TypeError: sum_two() takes 2 positional arguments but 3 were given`
Contributor guide
Assessment
This issue has not been assessed yet.