Question: Use python and the restcountries (linked) api for this problem. Function name: currencyConverter Parameters: country (string), money (int or float), conversionFactor (int or float) Returns:
Function name: currencyConverter Parameters: country (string), money (int or float), conversionFactor (int or float) Returns: string indicating either that the function errored or the monetary conversion Description: An important aspect of traveling is money! Write a function that takes in the name of the country you're traveling to, the amount of money to convert, and the conversion factor, and return a string of the format "In [country name], S[money] USD is worth [foreign currency symbol[money times currency factor, rounded to 2 decimal places] [three-letter foreign currency code]." Your code should be able to handle an
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
