Skip to content

Commit ad890c1

Browse files
authored
Fix grammar in currency-exchange exercise (#3517)
The word _amount_ is generally used for things that come in piles (like money) or that can otherwise be measured but not counted (like water). The word _number_ is typically used if you can count them. Technically money can be counted, but it's an exception (see 'piles' above). Here we count bills and digits, so 'number' is the more common choice of word.
1 parent 16f9e71 commit ad890c1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

exercises/concept/currency-exchange/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This function should return the amount of money that *is left* from the budget.
3636
Create the `get_value_of_bills()` function, taking 2 parameters:
3737

3838
1. `denomination` : The value of a single bill.
39-
2. `number_of_bills` : Amount of bills you received.
39+
2. `number_of_bills` : Number of bills you received.
4040

4141
This exchanging booth only deals in cash of certain increments.
4242
The total you receive must be divisible by the value of one "bill" or unit, which can leave behind a fraction or remainder.

exercises/concept/currency-exchange/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ There are three different kinds of built-in numbers in Python : `ints`, `floats`
88

99
`ints` are whole numbers. e.g. `1234`, `-10`, `20201278`.
1010

11-
Integers in Python have [arbitrary precision][arbitrary-precision] -- the amount of digits is limited only by the available memory of the host system.
11+
Integers in Python have [arbitrary precision][arbitrary-precision] -- the number of digits is limited only by the available memory of the host system.
1212

1313
### floats
1414

exercises/concept/currency-exchange/.meta/exemplar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_value_of_bills(denomination, number_of_bills):
2424
"""
2525
2626
:param denomination: int - the value of a bill.
27-
:param number_of_bills: int - amount of bills you received.
27+
:param number_of_bills: int - number of bills you received.
2828
:return: int - total value of bills you now have.
2929
"""
3030

exercises/concept/currency-exchange/exchange.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_value_of_bills(denomination, number_of_bills):
2424
"""
2525
2626
:param denomination: int - the value of a bill.
27-
:param number_of_bills: int - amount of bills you received.
27+
:param number_of_bills: int - number of bills you received.
2828
:return: int - total value of bills you now have.
2929
"""
3030

0 commit comments

Comments
 (0)