Skip to content

Conversation

@KonstantineTzaferis
Copy link

@KonstantineTzaferis KonstantineTzaferis commented Dec 4, 2024

In the last code line in the main function where we print the amounts of the source and the converted currency we added the target currency in the print statement in order to know to which currency code the conversion refers to.
Before changes: 500 USD is equal to 430.
After changes: 500 USDF is equal to 430 EUR.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant