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:

Use python and the restcountries (linked) api for this problem.  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: string indicating either that the function errored or the monetary

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!