Python ExchangeRate API Lab Level Up

  1. Allow the user to input the base currency and the target currency.

    • Modify your code to accept user input for both values
    • Update the API URL to accept dynamic values
  2. Do the calculation for them.

    • Allow the user to input an amount in the base currency and calculate the equivalent amount in the target currency.

      Hint: Check out this resource for formatting numeric values in f strings in Python: Python String Formatting Mini-Language

  3. Error Handing

    • Handle invalid currency codes and API errors gracefully.