Created
July 23, 2020 12:35
-
-
Save yezz123/ecd7b36148676f0f8cb93112fa237688 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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