diff --git a/contributor_database b/contributor_database index a97654200..009d86b35 100644 --- a/contributor_database +++ b/contributor_database @@ -1,4 +1,4 @@ -average:[Rohit Tanwar](@kriadmin) +average:[Rohit Tanwar](@kriadmin),[Hui Binyuan](@huybery) chunk:[Rohit Tanwar](@kriadmin) compact:[Rohit Tanwar](@kriadmin) count_occurences:[Rohit Tanwar](@kriadmin) diff --git a/snippets/average.md b/snippets/average.md index 746f6f746..85acb9475 100644 --- a/snippets/average.md +++ b/snippets/average.md @@ -4,7 +4,7 @@ Returns the average of two or more numbers. -Takes the sum of all the `args` and divides it by `len(args)`. The secind argument `0.0` in sum is to handle floating point division in `python2`. +Takes the sum of all the `args` and divides it by `len(args)`. The second argument `0.0` in sum is to handle floating point division in `python2`. ```python def average(*args): @@ -14,4 +14,4 @@ def average(*args): ``` python average(*[1, 2, 3]) # 2.0 average(1, 2, 3) # 2.0 -``` \ No newline at end of file +```