Question: Write a Python program to contact a National Park Info API and use the information gathered from that API to create a Word document with

Write a Python program to contact a National Park Info API and use the information gathered from that API to create a Word document with information about five US National Parks. The parks will be selected at random from a list of all the parks. Your Python program will create the entireWord document.
Your program will do the following tasks:
Make a request to this API URL. Note that this API will take about 30 seconds to respond the first time you use it, but then will be much faster the second time.and you will receive a response containing a list of national parks. Each item in the list is a dictionary with the park name, and that park's unique park_code value. This is the start of the response. "Acadia National Park" has the park_code of "ACAD" and "Arches National Park" has the park_code "ARCH".
2. From the response, pick 5 parks at random. Be careful to avoid picking duplicates.
3. Create a Word document.
4. For each park:

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 Programming Questions!