Welcome to the Currency Converter (Simple) page.
This page contains a brief description and implementation instructions for the project.
Project Description
Converts an amount from one currency to another using predefined exchange rates or an online API. For example, convert USD to EUR using a constant rate or via a real-time API.
Project Requirements
Python 3.x, for API use requests
.
How to Run the Project
- Write a script (e.g.
currency.py
) with a menu of currency pairs and rates, or fetch rates from an API (e.g. exchangerate-api.com). - Run it:
python currency.py
. Enter the amount and choose currencies; the program outputs converted amount.
Key Concepts Learned
- Arithmetic: Applying a conversion rate.
- User Interface: Selecting source/target currencies.
- API (Optional): Retrieving live exchange rates from a service.
Possible Extensions
- Add more currencies dynamically.
- Show historical rate trends (using a plotting library).
- Handle decimal precision and large numbers.