Question: Update the weather.py file to do the following: Using separate prompts, prompt the user to enter the latitude of the weather station and the longitude

Update the weather.py file to do the following:

  • Using separate prompts, prompt the user to enter the latitude of the weather station and the longitude of the weather station
  • Use the latitude and longitude to retrieve the following information:
    • Station Name
    • Current Conditions eg. Sunny, Partly Cloudy etc.
    • Temperature in Fahrenheit
    • Elevation
  • Display the output as follows:

The following are some urls with the latitude and longitude of weather stations to test your program:

https://forecast.weather.gov/MapClick.php?lat=32.73016&lon=-117.19518
https://forecast.weather.gov/MapClick.php?lat=46.999&lon=-102.8833
https://forecast.weather.gov/MapClick.php?lat=31.7798&lon=-106.3763
https://forecast.weather.gov/MapClick.php?lat=44.0608&lon=-92.4831
https://forecast.weather.gov/MapClick.php?lat=30.4391&lon=-81.703
https://forecast.weather.gov/MapClick.php?lat=32.1259&lon=-81.297

Step by Step Solution

3.48 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The question is complete Here is a stepbystep solution for updating the weatherpy file to meet the requirements described Step 1 Import Necessary Libr... View full answer

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!