During his presidential campaing in 2016, Donald Trump said "I know words. I have the best...
During his presidential campaing in 2016, Donald Trump said "I know words. I have the best words." Let's explore this idea in an objective, scientific manner. Write a function tweets_per_day(jsonurl) that, given the website address (URL) of a JSON file, counts the number of tweets that are sent on every day of the week. Return your result as a dictionary, mapping the day of the week to the total number of tweets sent on that day. For this question, you may want to open the file http://brain. mmaster.ca/joey/trump_tweets.json and manually inspect the fields to help parse the data. import json import urllib.request # write your answer here. ]: tweets-per-day ('http://brain.mcmaster.ca/joey/trump-tweet s.json.) { == Friday 33, Monday: 19 Saturday':35, Sunday': 26, Thursday 30, Tuesday' 28 Wednesday': 29 # Hidden test for Q1a Hidden test for Q1a : # Hidden test for Q1a ]: