From c5933ad1a1f54b01da764eede51ed79deabb6e9e Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 11 Oct 2023 10:39:27 +0100 Subject: [PATCH 1/3] Update README.md clear up newlines --- election-results/README.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/election-results/README.md b/election-results/README.md index 7276b2a..3e26454 100644 --- a/election-results/README.md +++ b/election-results/README.md @@ -16,25 +16,30 @@ So for example: "Cardiff West, 11014, C, 17803, L, 4923, UKIP, 2069, LD", "Islington South & Finsbury, 22547, L, 9389, C, 4829, LD, 3375, UKIP, 3371, G, 309, Ind" +### Codes + +* C - Conservative Party +* L - Labour Party +* UKIP - UKIP +* LD - Liberal Democrats +* G - Green Party +* Ind - Independent +* SNP - SNP + ## Tasks: We want to transform this into a cleaned-up result that shows: a) the constituency name + b) the result for each party + c) find the winner for each constituency + d) translates the party code into a full name -e) shows the share of the vote as a percentage of all the votes cast -### Codes +e) shows the share of the vote as a percentage of all the votes cast -* C - Conservative Party -* L - Labour Party -* UKIP - UKIP -* LD - Liberal Democrats -* G - Green Party -* Ind - Independent -* SNP - SNP ## Extension tasks: From 70eb2c588bf4a835c95fc0faa92455ef5c721833 Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 12 Oct 2023 10:12:14 +0100 Subject: [PATCH 2/3] switch to md style list switch to numbers not letters --- election-results/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/election-results/README.md b/election-results/README.md index 3e26454..a9355f4 100644 --- a/election-results/README.md +++ b/election-results/README.md @@ -30,15 +30,15 @@ So for example: ## Tasks: We want to transform this into a cleaned-up result that shows: -a) the constituency name +1. the constituency name -b) the result for each party +2. the result for each party -c) find the winner for each constituency +3. find the winner for each constituency -d) translates the party code into a full name +4. translates the party code into a full name -e) shows the share of the vote as a percentage of all the votes cast +5. shows the share of the vote as a percentage of all the votes cast From 1bc79549d6d391b56550b3c825d222a228ed0177 Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 12 Oct 2023 10:14:09 +0100 Subject: [PATCH 3/3] cleanup other list and this --- election-results/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/election-results/README.md b/election-results/README.md index a9355f4..3d26bf8 100644 --- a/election-results/README.md +++ b/election-results/README.md @@ -8,8 +8,8 @@ The fields in the file will be separated by commas but each row will vary in len A result will consist of: -1. A constituency -2. A repeating set of pairs with the party code and the votes cast +A. A constituency +B. A repeating set of pairs with the party code and the votes cast So for example: