Coders Packet

Python program to obtain COVID status as per user input

By Abirami Somasundaram

To obtain the number of active cases, confirmed cases, deaths, and other details of COVID status of the respective state( from India only) obtained as input from the user.

This is a simple code as in where we are to parse the JSON object obtained by making a GET Request to obtain data from the entered destination using the method requests.get().


The API/URL mentioned stores the covid status state-wise of India. The required state whose details are to be viewed is obtained as input from the user and then the JSON object is parsed which is considered as a dictionary in Python and the details of respective state held as key-value pair is then displayed.

Download Complete Code

Comments

No comments yet