From 5fd6786bb5c21bc4eabc25b70169ec85117a9863 Mon Sep 17 00:00:00 2001 From: Konstantinos Tzaferis <106535566+KonstantineTzaferis@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:08:40 +0200 Subject: [PATCH] Add files via upload Changes made in the currency_converter.py file In the main function in the last print statement before the changes was -- print(f'{amount} {source_currency} is equal to {converted_amount:.2f}') The changes were that in the print statement the target currency is mentioned so we know to which currency code the end amount refers to Example: 500 USD is equal to 430 EUR --- currency_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currency_converter.py b/currency_converter.py index 2e9fb23..2e6a511 100644 --- a/currency_converter.py +++ b/currency_converter.py @@ -35,7 +35,7 @@ def main(): source_currency = get_currency('Source') target_currency = get_currency('Target') converted_amount = convert(amount, source_currency, target_currency) - print(f'{amount} {source_currency} is equal to {converted_amount:.2f}') + print(f'{amount} {source_currency} is equal to {converted_amount:.2f} {target_currency}') if __name__ == "__main__":