diff --git a/project currency_converter/main.py b/project currency_converter/main.py new file mode 100644 index 0000000..ddb77d1 --- /dev/null +++ b/project currency_converter/main.py @@ -0,0 +1,9 @@ +from forex_python.converter import CurrencyRates +c = CurrencyRates() +amount = int(input("Enter the amount: ")) +from_currency = input("From Currency: ").upper() +to_currency = input("To Currency: ").upper() + +print(from_currency, "To", to_currency, amount) +result = c.convert(from_currency, to_currency, amount) +print(result) \ No newline at end of file diff --git a/project currency_converter/requirements.txt b/project currency_converter/requirements.txt new file mode 100644 index 0000000..f729049 --- /dev/null +++ b/project currency_converter/requirements.txt @@ -0,0 +1 @@ +forex-python==1.8 \ No newline at end of file