Skip to content

Commit

Permalink
docs: fix simple typo, noumbers -> numbers
Browse files Browse the repository at this point in the history
There is a small typo in snippets/weighted_average.md.

Should read `numbers` rather than `noumbers`.
  • Loading branch information
timgates42 committed Dec 24, 2020
1 parent 51aca28 commit 3494adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/weighted_average.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: weighted_average
tags: math,list,intermediate
---

Returns the weighted average of two or more noumbers.
Returns the weighted average of two or more numbers.

- Use `sum()` to sum the products of the numbers by their weight and to sum the weights.
- Use `zip()` and a list comprehension to iterate over the pairs of values and weights.
Expand Down

0 comments on commit 3494adc

Please sign in to comment.