Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# Python Programming Assignment No. 7 - Problem 2 # Answer each of the questions below within the code as comments # Answer each of

# Python Programming Assignment No. 7 - Problem 2

# Answer each of the questions below within the code as comments

image text in transcribed

# Answer each of the questions below within the code as comments # Question No. 1-What does the request library do? import urllib.request # Question No. 2 -What does the JSON library do? import json def readIdeaJamData() # Question No. 3 - Place the URL below into your web browser. what do you see? url "http://ideajam.net/ideajam/p/ij.nsf/jsonGetwhatsHot" # Question No. 4- Now go to this URL >> https://codebeautify.org/jsonviewer # Click on "Load URL" and paste in the URL from Question No. 3 What do you see? print("Reading website data...") # Question No. 5 -What does the statement below do? response = ur111b.request.urlopen(ur1) data = response. read() data = data.decode("UTF-8") data = json. loads ( str(data)) print( "Converting JSON to Python object...") print("Displaying data...") # Question No. 6 -What is being iterated through here? for i in datal 'result']: print("Created By:",il'createdby']) print ( " Idea: " , iidea" ] ) print( " IdeaSpace:" ,! 'ideaspace' ] ) print("Tag(s):", end-"") # Question No. 7 -What is being iterated through here? for j in il'tags'1: ") 'body' ] ) print(),end= " print( "Body: " , print( "URL:" ' iideaur1' ] ) print ( "Votes: " , 1votes" ] ) print( "Status : " , istatus' ] ) print( "Linked Idea(s):", end="") for j in ilinkedideald']; print (),end=" ") print ("Additional Long Text.",'additional!ongtext']) print ("Data Created :", "datecreated']) print("Implementation Manager:",il'implementationManager) print( "Implementation Plan:",iimplementationPlan']) print("n" print( "Comments:" for j in il'comments']: print (j[ 'createdby'1) print (jcomment' ] ) print (jdatecreated' ] ) print("n" print("n") print("Program Complete") readIdeaJamData() # Answer each of the questions below within the code as comments # Question No. 1-What does the request library do? import urllib.request # Question No. 2 -What does the JSON library do? import json def readIdeaJamData() # Question No. 3 - Place the URL below into your web browser. what do you see? url "http://ideajam.net/ideajam/p/ij.nsf/jsonGetwhatsHot" # Question No. 4- Now go to this URL >> https://codebeautify.org/jsonviewer # Click on "Load URL" and paste in the URL from Question No. 3 What do you see? print("Reading website data...") # Question No. 5 -What does the statement below do? response = ur111b.request.urlopen(ur1) data = response. read() data = data.decode("UTF-8") data = json. loads ( str(data)) print( "Converting JSON to Python object...") print("Displaying data...") # Question No. 6 -What is being iterated through here? for i in datal 'result']: print("Created By:",il'createdby']) print ( " Idea: " , iidea" ] ) print( " IdeaSpace:" ,! 'ideaspace' ] ) print("Tag(s):", end-"") # Question No. 7 -What is being iterated through here? for j in il'tags'1: ") 'body' ] ) print(),end= " print( "Body: " , print( "URL:" ' iideaur1' ] ) print ( "Votes: " , 1votes" ] ) print( "Status : " , istatus' ] ) print( "Linked Idea(s):", end="") for j in ilinkedideald']; print (),end=" ") print ("Additional Long Text.",'additional!ongtext']) print ("Data Created :", "datecreated']) print("Implementation Manager:",il'implementationManager) print( "Implementation Plan:",iimplementationPlan']) print("n" print( "Comments:" for j in il'comments']: print (j[ 'createdby'1) print (jcomment' ] ) print (jdatecreated' ] ) print("n" print("n") print("Program Complete") readIdeaJamData()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

More Books

Students also viewed these Databases questions

Question

Simplify the expression to a + bi form: -4--175-100+ -112

Answered: 1 week ago

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago