Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions exercises/concept/currency-exchange/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def exchange_money(budget, exchange_rate):
"""Calculate estimated value after exchange.

Parameters:
budget (float): Tthe amount of money you are planning to exchange.
budget (float): The amount of money you are planning to exchange.
exchange_rate (float): The unit value of the foreign currency.

Returns:
Expand Down Expand Up @@ -48,7 +48,7 @@ def get_change(budget, exchanging_value):
>>> get_change(300.75, 150.25)
150.50

This function calcultes and returns the amount of money left over from the budget
This function calculates and returns the amount of money left over from the budget
after an exchange.

"""
Expand All @@ -73,7 +73,7 @@ def get_value_of_bills(denomination, number_of_bills):
>>> get_value_of_bills(15.13, 16)
242

This function calculates and returns the total value of the bills (excluding fractionaal amounts).
This function calculates and returns the total value of the bills (excluding fractional amounts).

"""

Expand All @@ -97,8 +97,8 @@ def get_number_of_bills(amount, denomination):
>>> get_number_of_bills(35.16, 10)
3

This function calcluates and returns the number pf currency units (bills) that can
be obtained from the given amount. Whole bills only - no fractioal amounts.
This function calculates and returns the number pf currency units (bills) that can
be obtained from the given amount. Whole bills only - no fractional amounts.

"""

Expand Down
Loading