This Python project allows users to convert between different currencies such as USD, CAD, EUR, INR, AUD, and CNY. The program runs in a loop, continuously accepting user input for currency conversion until the user decides to exit.
- Accepts input for the source currency (USD, CAD, EUR, INR, AUD, CNY)
- Converts the entered currency to the desired target currency (USD, CAD, EUR, INR, AUD, CNY).
- The program runs in a while loop, allowing continuous currency conversion.
- To exit the program, the user can type "q".
- Run the Python script.
- Enter the source currency (USD, CAD, EUR, INR, AUD, CNY).
- Enter the target currency for conversion.
- To exit the program, type "q".
The program supports the following currencies for conversion:
"USD" - United States Dollar
"CAD" - Canadian Dollar
"EUR" - Euro
"INR" - Indian Rupee
"AUD" - Australian Dollar
"CNY" - Chinese Yuan
You can run the program by executing the main script
python currency_converter.py
Here's an example of how the program works:
Enter the Currency (q for quit): inr
AUD: 0.0182171364
CAD: 0.0162872486
CNY: 0.0858933371
EUR: 0.0111351716
USD: 0.0119846407
Thanks to Free Currency API for providing currency exchange rate data.