Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program to prompt a user to input a date and time string, and then it sh

ID: 3815539 • Letter: W

Question

Write a program to prompt a user to input a date and time string, and then it should report the temperature and weather conditions at that day and time for Syracuse, NY. To lookup the weather you will need to use the Dark Sky Time Machine https://darksky.net/dev/docs/time-machine The date and time that the user inputs must be in the following format: YYYY-MM-DDThh: mm:ss for example January 7, 2016 at 4:30pm would be: 2016-01 07T16:30:00 Be sure to use the GPS coordinates for Syracuse, NY which are (lat=43.048122, Ing=76.147424) Example Run (Based on the exchange rates from 2017-03-06 Enter the amount in USD you wish to exchange 100.100.00 in USD is 94.41 in EUR 100.00 in USD is 81.48 in GBP

Explanation / Answer

import pywapi
import pprint
pp = pprint.PrettyPrinter(indent=4)

result = pywapi.get_weather_from_google('60566')
pp.pprint(result)

Note: Please install pywapi.file

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote