Using the scripting language or tools of your choice - Please provide a solution to create a CSV file containing a full list of countries obtained from the REST Countries API containing the following fields -
Country Name | Capital City | Region | Population Size | Number of Currencies | Number of Languages |
---|---|---|---|---|---|
Afghanistan | Kabul | Asia | 27657145 | 1 | 3 |
For bonus points output to the console as many of the following statistics as possible -
- The country with the largest population
- The country with the most currencies
- The country with the most languages
- A count of countries per region
Please host your solution as a private repository and invite your interviewer as a collaborator.
Any runtime dependencies should be specified.