Skip to content
You are here: Home >> Blog >> My Projects >> [Python] COVID-19 Statistics

[Python] COVID-19 Statistics

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

  1. Install the covid module using pip
  2. Import the module into your program.
  3. Ask for user input, i.e., the country for which you wish to view data for.
  4. 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”.

GitHub Repo

https://github.com/NDavies-02/COVID-19-Stats