# CURRENCY CONVERTER

with open('currencyData.txt') as f:
    lines = f.readlines()

currencyDict = {}
for line in lines:
    parsed = line.split("\t")
    currencyDict[parsed[0]] = parsed[1]

amount = int(input("Enter amount to be converted: "))
print("Enter the name of currency you want to convert this amount to? Available options are:\n")
[print(item) for item in currencyDict.keys()]
currency = input("\nPlease enter one of these values: ")
print(f'{amount} INR is equal to {amount*float(currencyDict[currency])} {currency}\n')
