Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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())
- UserCountry = input("Enter your Country: "+ "\n")
- # getting data according to country name
- # data will be stored as a dictionary
- cases = covid.get_status_by_country_name(UserCountry)
- # printing country's data using for loop
- for x in cases:
- print(x, ":", cases[x])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement