Question: Using python requests (1) In the variable response get the following url using requests - https://api.github.com (2) Now in the try block get the status

Using python requests

(1) In the variable response get the following url using requests - "https://api.github.com" (2) Now in the try block get the status code of the url and save it in variable a. Now get the encoding format of the url and save it in variable b. Now get the text of the url and save it in variable c.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!