Skip to content

Commit 69b077a

Browse files
authored
README.md: sumab() --> sum_ab() for consistancy
consistency
1 parent c775baf commit 69b077a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ We want your work to be readable by others; therefore, we encourage you to note
8282
```python
8383
def sum_ab(a, b):
8484
"""
85-
Returns the sum of two integers a and b
85+
Return the sum of two integers a and b
8686
>>> sum_ab(2, 2)
8787
4
8888
>>> sum_ab(-2, 3)
@@ -116,8 +116,8 @@ We want your work to be readable by others; therefore, we encourage you to note
116116
The use of [Python type hints](https://docs.python.org/3/library/typing.html) is encouraged for function parameters and return values. Our automated testing will run [mypy](http://mypy-lang.org) so run that locally before making your submission.
117117

118118
```python
119-
def sumab(a: int, b: int) --> int:
120-
pass
119+
def sum_ab(a: int, b: int) --> int:
120+
return a + b
121121
```
122122

123123
- [__List comprehensions and generators__](https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions) are preferred over the use of `lambda`, `map`, `filter`, `reduce` but the important thing is to demonstrate the power of Python in code that is easy to read and maintain.

0 commit comments

Comments
 (0)