Updated: Please see the new article here which covers v2.0.
Based on: https://github.com/PEDEL-CODE/Covid-Tracker/
This simple tool allows you to view the latest Coronavirus information for a given country.
Process
- Install the
covid
module usingpip
- Import the module into your program.
- Ask for user input, i.e., the country for which you wish to view data for.
- Try to find the COVID-19 statistics for this country. Display if found, otherwise display an error.
Prerequisites
– Python 3
– Internet connection
Caveats
Nations of a country, such as Wales may not show.
Using “US” for the United States works but not “United States”, whereas “UK” will not work for United Kingdom – you must type “United Kingdom”.