Step-by-Step:
- We begin by importing the CurrencyRates class from the forex_python.converter module.
- We create an instance of the CurrencyRates class using c = CurrencyRates().
- The user is prompted to input the amount they want to convert, as well as the source and target currencies.
- We display a message indicating the conversion about to take place.
- The convert method of the CurrencyRates instance is called with the source currency, target currency, and amount as arguments.
- The result of the conversion is stored in the result variable.
- Finally, we display the converted result.