Skip to content

Commit a989fa8

Browse files
committed
[Concepts Currency-exchange] Fix typos in docstrings
1 parent 15f8d2d commit a989fa8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

exercises/concept/currency-exchange/exchange.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def exchange_money(budget, exchange_rate):
1111
"""Calculate estimated value after exchange.
1212
1313
Parameters:
14-
budget (float): Tthe amount of money you are planning to exchange.
14+
budget (float): The amount of money you are planning to exchange.
1515
exchange_rate (float): The unit value of the foreign currency.
1616
1717
Returns:
@@ -48,7 +48,7 @@ def get_change(budget, exchanging_value):
4848
>>> get_change(300.75, 150.25)
4949
150.50
5050
51-
This function calcultes and returns the amount of money left over from the budget
51+
This function calculates and returns the amount of money left over from the budget
5252
after an exchange.
5353
5454
"""
@@ -73,7 +73,7 @@ def get_value_of_bills(denomination, number_of_bills):
7373
>>> get_value_of_bills(15.13, 16)
7474
242
7575
76-
This function calculates and returns the total value of the bills (excluding fractionaal amounts).
76+
This function calculates and returns the total value of the bills (excluding fractional amounts).
7777
7878
"""
7979

@@ -97,8 +97,8 @@ def get_number_of_bills(amount, denomination):
9797
>>> get_number_of_bills(35.16, 10)
9898
3
9999
100-
This function calcluates and returns the number pf currency units (bills) that can
101-
be obtained from the given amount. Whole bills only - no fractioal amounts.
100+
This function calculates and returns the number pf currency units (bills) that can
101+
be obtained from the given amount. Whole bills only - no fractional amounts.
102102
103103
"""
104104

0 commit comments

Comments
 (0)