A simple Command-Line Currency Converter that fetches live exchange rates from Open Exchange Rates API and converts between any two supported currencies.
- 🌍 Fetches real-time exchange rates from a free API.
- 🔄 Converts between any two currencies supported by the API.
- 📜 Displays all available currencies for reference.
- ❌ Handles invalid currency codes gracefully.
-
Clone the repository
git clone <your-repo-url> cd Project_12_Currency_Converter
-
Install dependencies
pip install requests
-
Run the program
python currency_converter.py
you can choose from :
['USD', 'EUR', 'GBP', 'INR', 'JPY', ...]
Value: 100
from Currency: USD
to Currency: INR
💰 100 USD = 8321.45 INR- How to consume a public API without authentication.
- How to process and store exchange rate data in Python.
- Simple arithmetic to calculate currency conversion.
- Add GUI interface using Tkinter.
- Cache rates locally to avoid multiple API calls.
- Allow batch conversions (convert to multiple currencies at once).