Skip to content

Instantly share code, notes, and snippets.

@yezz123
Created July 23, 2020 12:35
Show Gist options
  • Save yezz123/ecd7b36148676f0f8cb93112fa237688 to your computer and use it in GitHub Desktop.
Save yezz123/ecd7b36148676f0f8cb93112fa237688 to your computer and use it in GitHub Desktop.
# importing the library
from covid import Covid
# initializing
covid = Covid()
# printing data for the world
print("Total active cases in world:", covid.get_total_active_cases())
print("Total recovered cases in world:", covid.get_total_recovered())
print("Total deaths in world:", covid.get_total_deaths())
# getting data according to country wise
cases = covid.get_status_by_country_name("us")
for x in cases:
print(x, ":", cases[x])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment