Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1c: The Most Words. The Best Words. [3 points] Write a function words_per_day (jsonurl, word) that counts the total number of times that word
Question 1c: The Most Words. The Best Words. [3 points] Write a function words_per_day (jsonurl, word) that counts the total number of times that word is tweeted versus the day of the week. In import json import urllib.request from string import punctuation # Write your answer here words-per-day('http://brain . mcmaster.ca/Joey/trump-tweets.json', In [ ]: 'america') { = Friday": 1, Monday": 3, Saturday: e, Sunday: 2, Thursday2, Tuesday: 1, Wednesday 2 In [ ] : words-per-day('http://brain . mcmaster .ca/joey/trump-tweets.json', 'china') { Friday: e, Monday": e, Saturday: e, Sunday: 1, Thursday 1, Tuesday: e, Wednesday e In [ ] : words-per-day('http://brain . mcmaster.ca/Joey/trump-tweets . json', 'great') { Friday: 8, Monday": 4, Saturday': 1, Sunday: 8, Thursday 8, Tuesday 8, Wednesday 9 In [ ] : words-per-day('http://brain . mcmaster.ca/Joey/trump-tweets . json', 'hillary') { == Friday: 2, Monday: e
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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