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
Step: 1
Answer PYTHON CODE import bs4 requests try url httpsforecastweathergovMapClickphp latlong lat3273016...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started