From c0cb62192f41f7e8d80b4495b06923a78250ab94 Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Wed, 28 Jun 2023 13:22:17 +0100 Subject: [PATCH 01/11] Update main.py --- .../project_components/target_practice_starter/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tasks/project_components/target_practice_starter/main.py b/lib/tasks/project_components/target_practice_starter/main.py index e257fa60a..c9e2a0dc3 100644 --- a/lib/tasks/project_components/target_practice_starter/main.py +++ b/lib/tasks/project_components/target_practice_starter/main.py @@ -8,12 +8,12 @@ def setup(): # Setup your game here - size(400, 400) # width and height + size(400, 400) # width and height of screen def draw(): # Things to do in every frame - fill('cyan') - rect(0, 0, 400, 250) # Sky + fill('cyan') # Set the fill color for the sky to cyan + rect(0, 0, 400, 250) # Draw a rectangle for the sky with these values for x, y, width, height # Keep this to run your code run(frame_rate=2) From 64aa240b5e1c53c0ab946c1a84af632d5029219f Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Wed, 28 Jun 2023 13:23:31 +0100 Subject: [PATCH 02/11] Create p5.py --- .../target_practice_starter/p5.py | 138 ++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 lib/tasks/project_components/target_practice_starter/p5.py diff --git a/lib/tasks/project_components/target_practice_starter/p5.py b/lib/tasks/project_components/target_practice_starter/p5.py new file mode 100644 index 000000000..45f3e0c42 --- /dev/null +++ b/lib/tasks/project_components/target_practice_starter/p5.py @@ -0,0 +1,138 @@ +# Definitions for compatibility with the p5py processing library +from processing import * +import __main__ + +# Shape +from processing import rectMode as rect_mode +from processing import ellipseMode as ellipse_mode +from processing import strokeWeight as stroke_weight +from processing import strokeCap as stroke_cap +from processing import strokeJoin as stroke_join +from processing import noStroke as no_stroke +from processing import noFill as no_fill + +# Fonts +from processing import createFont as create_font +from processing import loadFont as load_font +from processing import textFont as text_font + +# Text +from processing import textAlign as text_align +from processing import textLeading as text_leading +from processing import textMode as text_mode +from processing import textSize as text_size +from processing import textWidth as text_width + +# Colour +from processing import blendColor as blend_color +from processing import lerpColor as lerp_color +from processing import color as Color + +# Images +from processing import createImage as create_image +from processing import imageMode as image_mode +from processing import loadImage as load_image +from processing import noTint as no_tint +from processing import requestImage as request_image + +# Environment +from processing import frameRate as frame_rate +from processing import noCursor as no_cursor +from processing import noLoop as no_loop + +# Transform +from processing import applyMatrix as apply_matrix +from processing import popMatrix as pop_matrix +from processing import printMatrix as print_matrix +from processing import pushMatrix as push_matrix +from processing import resetMatrix as reset_matrix +from processing import rotateX as rotate_x +from processing import rotateY as rotate_y +from processing import pushStyle as push_style +from processing import popStyle as pop_style + +from processing import run as main_run + +# Keyboard + +def mousePressed(): + if hasattr(__main__, "mouse_pressed"): + mouse_pressed = getattr(__main__, "mouse_pressed") + mouse_pressed() + +def mouseReleased(): + if hasattr(__main__, "mouse_released"): + mouse_released = getattr(__main__, "mouse_released") + mouse_released() + +__main__.mouse_x = 0 +__main__.mouse_y = 0 +__main__.mouse_px = 0 +__main__.mouse_py = 0 +__main__.frame_count = 0 +__main__.frame_rate = 60 + +def mouseMoved(): + __main__.mouse_x = mouse.x + __main__.mouse_y = mouse.y + __main__.mouse_px = mouse.px + __main__.mouse_py = mouse.py + if hasattr(__main__, "mouse_moved"): + mouse_moved = getattr(__main__, "mouse_moved") + mouse_moved() + +def mouseDragged(): + if hasattr(__main__, "mouse_dragged"): + mouse_dragged = getattr(__main__, "mouse_dragged") + mouse_dragged() + +def new_draw(): + __main__.frame_count = frameCount + frameRate = __main__.frame_rate + old_draw() + +def run(): + global old_draw + old_draw = __main__.draw + __main__.draw = new_draw + main_run() + +def grid(): + pushMatrix() + stroke(200) + fill(0) + line(0, height/2, width, height/2) + line(width/2, 0, width/2, height) + x_coords = [0, width/2, width] + y_coords = [0, height/2, height] + + for x in x_coords: + for y in y_coords: + show_coord(x, y) + + popMatrix() + +def circle(x, y, w): + ellipse(x, y, w, w) + +def show_coord(x, y): + if x == width: + x_align = RIGHT + elif x == 0: + x_align = LEFT + else: + x_align = CENTER + + if y == height: + y_align = BASELINE + elif y == 0: + y_align = TOP + else: + y_align = CENTER + + pushStyle() + fill(100) + text_align(x_align, y_align) + text('(' + str(int(x)) + ', ' + str(int(y)) + ')', x, y) + popStyle() + From 27d6e59336e42883f69fa1b739364f34822f676d Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Wed, 28 Jun 2023 13:47:52 +0100 Subject: [PATCH 03/11] Delete p5.py --- .../target_practice_starter/p5.py | 138 ------------------ 1 file changed, 138 deletions(-) delete mode 100644 lib/tasks/project_components/target_practice_starter/p5.py diff --git a/lib/tasks/project_components/target_practice_starter/p5.py b/lib/tasks/project_components/target_practice_starter/p5.py deleted file mode 100644 index 45f3e0c42..000000000 --- a/lib/tasks/project_components/target_practice_starter/p5.py +++ /dev/null @@ -1,138 +0,0 @@ -# Definitions for compatibility with the p5py processing library -from processing import * -import __main__ - -# Shape -from processing import rectMode as rect_mode -from processing import ellipseMode as ellipse_mode -from processing import strokeWeight as stroke_weight -from processing import strokeCap as stroke_cap -from processing import strokeJoin as stroke_join -from processing import noStroke as no_stroke -from processing import noFill as no_fill - -# Fonts -from processing import createFont as create_font -from processing import loadFont as load_font -from processing import textFont as text_font - -# Text -from processing import textAlign as text_align -from processing import textLeading as text_leading -from processing import textMode as text_mode -from processing import textSize as text_size -from processing import textWidth as text_width - -# Colour -from processing import blendColor as blend_color -from processing import lerpColor as lerp_color -from processing import color as Color - -# Images -from processing import createImage as create_image -from processing import imageMode as image_mode -from processing import loadImage as load_image -from processing import noTint as no_tint -from processing import requestImage as request_image - -# Environment -from processing import frameRate as frame_rate -from processing import noCursor as no_cursor -from processing import noLoop as no_loop - -# Transform -from processing import applyMatrix as apply_matrix -from processing import popMatrix as pop_matrix -from processing import printMatrix as print_matrix -from processing import pushMatrix as push_matrix -from processing import resetMatrix as reset_matrix -from processing import rotateX as rotate_x -from processing import rotateY as rotate_y -from processing import pushStyle as push_style -from processing import popStyle as pop_style - -from processing import run as main_run - -# Keyboard - -def mousePressed(): - if hasattr(__main__, "mouse_pressed"): - mouse_pressed = getattr(__main__, "mouse_pressed") - mouse_pressed() - -def mouseReleased(): - if hasattr(__main__, "mouse_released"): - mouse_released = getattr(__main__, "mouse_released") - mouse_released() - -__main__.mouse_x = 0 -__main__.mouse_y = 0 -__main__.mouse_px = 0 -__main__.mouse_py = 0 -__main__.frame_count = 0 -__main__.frame_rate = 60 - -def mouseMoved(): - __main__.mouse_x = mouse.x - __main__.mouse_y = mouse.y - __main__.mouse_px = mouse.px - __main__.mouse_py = mouse.py - if hasattr(__main__, "mouse_moved"): - mouse_moved = getattr(__main__, "mouse_moved") - mouse_moved() - -def mouseDragged(): - if hasattr(__main__, "mouse_dragged"): - mouse_dragged = getattr(__main__, "mouse_dragged") - mouse_dragged() - -def new_draw(): - __main__.frame_count = frameCount - frameRate = __main__.frame_rate - old_draw() - -def run(): - global old_draw - old_draw = __main__.draw - __main__.draw = new_draw - main_run() - -def grid(): - pushMatrix() - stroke(200) - fill(0) - line(0, height/2, width, height/2) - line(width/2, 0, width/2, height) - x_coords = [0, width/2, width] - y_coords = [0, height/2, height] - - for x in x_coords: - for y in y_coords: - show_coord(x, y) - - popMatrix() - -def circle(x, y, w): - ellipse(x, y, w, w) - -def show_coord(x, y): - if x == width: - x_align = RIGHT - elif x == 0: - x_align = LEFT - else: - x_align = CENTER - - if y == height: - y_align = BASELINE - elif y == 0: - y_align = TOP - else: - y_align = CENTER - - pushStyle() - fill(100) - text_align(x_align, y_align) - text('(' + str(int(x)) + ', ' + str(int(y)) + ')', x, y) - popStyle() - From 703bf3a2bf35ee98e12d4ac9a4c91181d50f5758 Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Wed, 28 Jun 2023 13:48:09 +0100 Subject: [PATCH 04/11] Delete p5.py --- .../target_practice_example/p5.py | 139 ------------------ 1 file changed, 139 deletions(-) delete mode 100644 lib/tasks/project_components/target_practice_example/p5.py diff --git a/lib/tasks/project_components/target_practice_example/p5.py b/lib/tasks/project_components/target_practice_example/p5.py deleted file mode 100644 index 4249cd99a..000000000 --- a/lib/tasks/project_components/target_practice_example/p5.py +++ /dev/null @@ -1,139 +0,0 @@ -# Definitions for compatibility with the p5py processing library -from processing import * -import __main__ - -# Shape -from processing import rectMode as rect_mode -from processing import ellipseMode as ellipse_mode -from processing import strokeWeight as stroke_weight -from processing import strokeCap as stroke_cap -from processing import strokeJoin as stroke_join -from processing import noStroke as no_stroke -from processing import noFill as no_fill - -# Fonts -from processing import createFont as create_font -from processing import loadFont as load_font -from processing import textFont as text_font - -# Text -from processing import textAlign as text_align -from processing import textLeading as text_leading -from processing import textMode as text_mode -from processing import textSize as text_size -from processing import textWidth as text_width - -# Colour -from processing import blendColor as blend_color -from processing import lerpColor as lerp_color -from processing import color as Color - -# Images -from processing import createImage as create_image -from processing import imageMode as image_mode -from processing import loadImage as load_image -from processing import noTint as no_tint -from processing import requestImage as request_image - -# Environment -from processing import frameRate as frame_rate -from processing import noCursor as no_cursor -from processing import noLoop as no_loop - -# Transform -from processing import applyMatrix as apply_matrix -from processing import popMatrix as pop_matrix -from processing import printMatrix as print_matrix -from processing import pushMatrix as push_matrix -from processing import resetMatrix as reset_matrix -from processing import rotateX as rotate_x -from processing import rotateY as rotate_y -from processing import pushStyle as push_style -from processing import popStyle as pop_style - -from processing import run as main_run - -# Keyboard - -def mousePressed(): - if hasattr(__main__, "mouse_pressed"): - mouse_pressed = getattr(__main__, "mouse_pressed") - mouse_pressed() - -def mouseReleased(): - if hasattr(__main__, "mouse_released"): - mouse_released = getattr(__main__, "mouse_released") - mouse_released() - -__main__.mouse_x = 0 -__main__.mouse_y = 0 -__main__.mouse_px = 0 -__main__.mouse_py = 0 -__main__.frame_count = 0 -__main__.frame_rate = 60 - -def mouseMoved(): - __main__.mouse_x = mouse.x - __main__.mouse_y = mouse.y - __main__.mouse_px = mouse.px - __main__.mouse_py = mouse.py - if hasattr(__main__, "mouse_moved"): - mouse_moved = getattr(__main__, "mouse_moved") - mouse_moved() - -def mouseDragged(): - if hasattr(__main__, "mouse_dragged"): - mouse_dragged = getattr(__main__, "mouse_dragged") - mouse_dragged() - -def new_draw(): - __main__.frame_count = frameCount - frameRate = __main__.frame_rate - old_draw() - -def run(): - global old_draw - old_draw = __main__.draw - __main__.draw = new_draw - main_run() - -def grid(): - pushMatrix() - stroke(200) - fill(0) - line(0, height/2, width, height/2) - line(width/2, 0, width/2, height) - x_coords = [0, width/2, width] - y_coords = [0, height/2, height] - - for x in x_coords: - for y in y_coords: - show_coord(x, y) - - popMatrix() - -def circle(x, y, w): - ellipse(x, y, w, w) - -def show_coord(x, y): - if x == width: - x_align = RIGHT - elif x == 0: - x_align = LEFT - else: - x_align = CENTER - - if y == height: - y_align = BASELINE - elif y == 0: - y_align = TOP - else: - y_align = CENTER - - pushStyle() - fill(100) - text_align(x_align, y_align) - text('(' + str(int(x)) + ', ' + str(int(y)) + ')', x, y) - popStyle() - - From ae7716de27eba43599958c6a8bb5328e66a64ba6 Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Wed, 28 Jun 2023 14:24:12 +0100 Subject: [PATCH 05/11] Update main.py --- .../project_components/target_practice_example/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/tasks/project_components/target_practice_example/main.py b/lib/tasks/project_components/target_practice_example/main.py index 802ec07b5..bccec750d 100644 --- a/lib/tasks/project_components/target_practice_example/main.py +++ b/lib/tasks/project_components/target_practice_example/main.py @@ -4,21 +4,21 @@ # The mouse_pressed function goes here def mouse_pressed(): - if hit_color == Color('blue'): # Like functions, 'if' statements are indented + if hit_colour == Color('blue'): # Like functions, 'if' statements are indented print('You hit the outer circle, 50 points!') - elif hit_color == Color('red'): + elif hit_colour == Color('red'): print('You hit the inner circle, 200 points!') - elif hit_color == Color('yellow'): + elif hit_colour == Color('yellow'): print('You hit the middle, 500 points!') else: print('You missed! No points!') # The shoot_arrow function goes here def shoot_arrow(): - global hit_color # Can be used in other functions + global hit_colour # Can be used in other functions arrow_x = randint(100, 300) # Store a random number between 100 and 300 arrow_y = randint(100, 300) # Store a random number between 100 and 300 - hit_color = get(arrow_x, arrow_y) # Get the hit colour + hit_colour = get(arrow_x, arrow_y) # Get the hit colour fill('sienna') # Set the arrow to fill colour to brown circle(arrow_x, arrow_y, 15) # Draw a small circle at random coordinates From acf8340a7729e09c1104b0778c112366903632a6 Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Wed, 28 Jun 2023 14:52:49 +0100 Subject: [PATCH 06/11] Update main.py --- lib/tasks/project_components/target_practice_example/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/project_components/target_practice_example/main.py b/lib/tasks/project_components/target_practice_example/main.py index bccec750d..454309394 100644 --- a/lib/tasks/project_components/target_practice_example/main.py +++ b/lib/tasks/project_components/target_practice_example/main.py @@ -40,7 +40,7 @@ def draw(): fill('red') circle(200, 200, 110) # Inner circle fill('yellow') - circle(200, 200, 30) # Middle + circle(200, 200, 30) # Middle circle shoot_arrow() # Keep this to run your code From 4135a71df71c48c58e07bed6296318bf80b2013f Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Thu, 29 Jun 2023 14:09:20 +0100 Subject: [PATCH 07/11] Update main.py - Fixed typo in comment --- .../powerful_patterns_kek_lepis_sarawak/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/project_components/powerful_patterns_kek_lepis_sarawak/main.py b/lib/tasks/project_components/powerful_patterns_kek_lepis_sarawak/main.py index e9816f307..3c1f5c80a 100644 --- a/lib/tasks/project_components/powerful_patterns_kek_lepis_sarawak/main.py +++ b/lib/tasks/project_components/powerful_patterns_kek_lepis_sarawak/main.py @@ -30,7 +30,7 @@ def quadrant(): def outer(): - # Thehe cake is wrapped in an outer layer + # The cake is wrapped in an outer layer yellowgreen = Color(154, 205, 50) no_fill() # Don't cover up the cake quadrants! From a629e854932c5fd0581549061eb69f7cb6c1f879 Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Thu, 29 Jun 2023 15:02:05 +0100 Subject: [PATCH 08/11] Added frame_rate parameter in call to run() --- lib/tasks/project_components/powerful_patterns_starter/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/project_components/powerful_patterns_starter/main.py b/lib/tasks/project_components/powerful_patterns_starter/main.py index 84f2849da..28ebb719c 100644 --- a/lib/tasks/project_components/powerful_patterns_starter/main.py +++ b/lib/tasks/project_components/powerful_patterns_starter/main.py @@ -16,4 +16,4 @@ def draw(): # Keep this to run your code -run() +run(frame_rate = 5) From f6ec2a830ec9c59843a4b271ab314ef0ab256791 Mon Sep 17 00:00:00 2001 From: Mac Bowley <36036152+m-bowley@users.noreply.github.com> Date: Thu, 29 Jun 2023 16:46:57 +0100 Subject: [PATCH 09/11] Update main.py to match project --- .../rocket_launch_example/main.py | 90 +++++++++---------- 1 file changed, 44 insertions(+), 46 deletions(-) diff --git a/lib/tasks/project_components/rocket_launch_example/main.py b/lib/tasks/project_components/rocket_launch_example/main.py index e8637ceff..71cc9488a 100644 --- a/lib/tasks/project_components/rocket_launch_example/main.py +++ b/lib/tasks/project_components/rocket_launch_example/main.py @@ -6,67 +6,65 @@ # Setup global variables screen_size = 400 -rocket_y = screen_size # start at the bottom -burn = 100 # how much fuel is burned in each frame +rocket_y = 400 +burn = 100 orbit_radius = 250 orbit_y = screen_size - orbit_radius + # The draw_rocket function goes here def draw_rocket(): + global rocket_y, fuel, burn - global rocket_y, fuel, burn - - if fuel >= burn and rocket_y > orbit_y: # still flying - rocket_y -= 1 # move the rocket - fuel -= burn # burn fuel - print('Fuel left: ', fuel) - - no_stroke() # Turn off the stroke - - for i in range(25): # draw 25 burning exhaust ellipses - fill(255, 255 - i*10, 0) # yellow - ellipse(width/2, rocket_y + i, 8, 3) # i increases each time the loop repeats + if fuel >= burn and rocket_y > orbit_y: + rocket_y -= 1 + fuel -= burn + print('Fuel left: ', fuel) + + no_stroke() + + for i in range(25): + fill(255, 255 - i * 10, 0) + ellipse(width/2, rocket_y + i, 8, 3) - fill(200, 200, 200, 100) # transparent grey - for i in range(20): # draw 20 random smoke ellipses - ellipse(width/2 + randint(-5, 5), rocket_y + randint(20, 50), randint(5, 10), randint(5, 10)) - - if fuel < burn and rocket_y > orbit_y: # No more fuel and not in orbit - tint(255, 0, 0) # Failure - elif fuel < 1000 and rocket_y <= orbit_y: - tint(0, 255, 0) # Success - elif fuel >= 1000 and rocket_y <= orbit_y: - tint(255, 200, 0) # Too much fuel - - image(rocket, width/2, rocket_y, 64, 64) - no_tint() - + fill(200, 200, 200, 100) #Transparent grey + for i in range(20): #Draw 20 random smoke ellipses + ellipse(width/2 + randint(-5, 5), rocket_y + randint(20, 50), randint(5, 10), randint(5, 10)) + + if fuel < burn and rocket_y > orbit_y: + tint(255, 0, 0) + elif fuel < 1000 and rocket_y <= orbit_y: + tint(0, 255, 0) + elif fuel >= 1000 and rocket_y <= orbit_y: + tint(255, 200, 0) + + image(rocket, width/2, rocket_y, 64, 64) + no_tint() + # The draw_background function goes here def draw_background(): - background(0) # short for background(0, 0, 0) - black - image(planet, width/2, height, 300, 300) # draw the image - - no_fill() # Turn off any fill - stroke(255) # Set a white stroke - stroke_weight(2) - ellipse(width/2, height, orbit_radius*2, orbit_radius*2) - + background(0) + image(planet, width/2, height, 300, 300) + + no_fill() + stroke(255) + stroke_weight(2) + ellipse(width/2, height, orbit_radius * 2, orbit_radius * 2) def setup(): - # Setup your animation here - size(screen_size, screen_size) - image_mode(CENTER) - global planet, rocket - planet = load_image('planet.png') # your chosen planet - rocket = load_image('rocket.png') + # Setup your animation here + size(screen_size, screen_size) + image_mode(CENTER) + global planet, rocket + planet = load_image('planet.png') + rocket = load_image('rocket.png') def draw(): - # Things to do in every frame - draw_background() - draw_rocket() - + # Things to do in every frame + draw_background() + draw_rocket() fuel = int(input('How many kilograms of fuel do you want to use?')) run() From 725560b5df7c47c8ddc7bfe23d31038a735fb036 Mon Sep 17 00:00:00 2001 From: Mac Bowley <36036152+m-bowley@users.noreply.github.com> Date: Fri, 30 Jun 2023 11:28:39 +0100 Subject: [PATCH 10/11] Update main.py - fixing tabulation and adding a comment --- .../project_components/make_a_face_starter/main.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/tasks/project_components/make_a_face_starter/main.py b/lib/tasks/project_components/make_a_face_starter/main.py index 140cbaadf..3641009ad 100644 --- a/lib/tasks/project_components/make_a_face_starter/main.py +++ b/lib/tasks/project_components/make_a_face_starter/main.py @@ -4,13 +4,16 @@ from grid import * def setup(): - # Put code to run once here - size(400, 400) # width and height + # Put code to run once here + size(400, 400) # width and height def draw(): - # Put code to run every frame here - background(255, 255, 255) # move under draw() to reset the drawing every frame - grid() # add a # to the beginning of this line to hide the grid + # Put code to run every frame here + background(255, 255, 255) + # Add code to draw your face here + + grid() # add a # to the beginning of this line to hide the grid + # Keep this to run your code run() From a0e80281782cb02acf3bf335d6c82bcfe6304c01 Mon Sep 17 00:00:00 2001 From: m-bowley Date: Mon, 3 Jul 2023 14:33:42 +0100 Subject: [PATCH 11/11] Adding second example for charting champions --- .../carbon.csv | 142 ++++++++++++ .../charting_champions_second_starter/gdp.csv | 202 ++++++++++++++++++ .../charting_champions_second_starter/main.py | 10 + .../charting_champions_second_starter/mcu.csv | 23 ++ .../medals.csv | 138 ++++++++++++ .../charting_champions_second_starter/pop.csv | 187 ++++++++++++++++ .../project_config.yml | 33 +++ 7 files changed, 735 insertions(+) create mode 100644 lib/tasks/project_components/charting_champions_second_starter/carbon.csv create mode 100644 lib/tasks/project_components/charting_champions_second_starter/gdp.csv create mode 100644 lib/tasks/project_components/charting_champions_second_starter/main.py create mode 100644 lib/tasks/project_components/charting_champions_second_starter/mcu.csv create mode 100644 lib/tasks/project_components/charting_champions_second_starter/medals.csv create mode 100644 lib/tasks/project_components/charting_champions_second_starter/pop.csv create mode 100644 lib/tasks/project_components/charting_champions_second_starter/project_config.yml diff --git a/lib/tasks/project_components/charting_champions_second_starter/carbon.csv b/lib/tasks/project_components/charting_champions_second_starter/carbon.csv new file mode 100644 index 000000000..22878aa79 --- /dev/null +++ b/lib/tasks/project_components/charting_champions_second_starter/carbon.csv @@ -0,0 +1,142 @@ +Albania,4342.011,1.511 +Algeria,130493.653,3.158 +Angola,18021.394,0.605 +Argentina,183375.203,4.142 +Armenia,5165.593,1.763 +Australia,384583.857,15.632 +Austria,64872.394,7.376 +Azerbaijan,30805.851,3.124 +Bahrain,29813.834,19.969 +Bangladesh,78270.17,0.475 +Belarus,54070.453,5.687 +Belgium,90368.188,7.963 +Benin,6763.074,0.605 +Bolivia (Plurin. State of),21899.18,1.981 +Bosnia and Herzegovina,22327.978,6.367 +Botswana,7717.409,3.367 +Brazil,427632.717,2.043 +Brunei Darussalam,6710.178,15.641 +Bulgaria,42819.932,6.051 +C√¥te d‚ÄôIvoire,10234.205,0.421 +Cambodia,10762.923,0.672 +Cameroon,6152.919,0.256 +Canada,547798.641,14.992 +Chile,86087.14,4.648 +China,9257933.9,6.678 +Colombia,75291.911,1.535 +Congo,2847.335,0.541 +Costa Rica,7584.411,1.546 +Croatia,16193.172,3.925 +Cuba,26215.665,2.283 +Curaçao,3748.132,23.28 +Cyprus,6367.874,7.448 +Czechia,101682.752,9.602 +Dem. People's Rep. Korea,19579.698,0.768 +Dem. Rep. of the Congo,2201.742,0.027 +Denmark,31263.57,5.421 +Dominican Republic,21430.38,1.99 +Ecuador,34299.317,2.063 +Egypt,209219.059,2.145 +El Salvador,5735.668,0.899 +Eritrea,632.105,0.125 +Estonia,15972.029,12.137 +Ethiopia,13059.815,0.124 +Finland,42598.175,7.734 +France,306123.541,4.565 +Gabon,3367.911,1.663 +Georgia,8720.3,2.346 +Germany,718794.085,8.696 +Ghana,13779.635,0.478 +Gibraltar,703.9,20.703 +Greece,63213.31,5.878 +Guatemala,15703.161,0.928 +Haiti,3293.125,0.3 +Honduras,9426.74,1.017 +Hong Kong,44034.675,5.957 +Hungary,45783.636,4.678 +Iceland,2173.307,6.336 +India,2161567.072,1.614 +Indonesia,496406.275,1.88 +Iran (Islamic Republic of),567123.294,6.987 +Iraq,139877.659,3.655 +Ireland,35720.302,7.439 +Israel,63766.189,7.322 +Italy,321481.224,5.31 +Jamaica,6971.666,2.412 +Japan,1132435.4,8.938 +Jordan,25550.14,2.633 +Kazakhstan,255767.646,14.179 +Kenya,16264.973,0.327 +Kosovo,8168.55,4.461 +Kuwait,89420.615,21.615 +Kyrgyzstan,8909.263,1.437 +Latvia,6679.644,3.441 +Lebanon,26931.044,4.428 +Libya,41528.35,6.514 +Lithuania,10811.096,3.831 +Luxembourg,8631.187,14.458 +Malaysia,211046.967,6.674 +Malta,1516.276,3.261 +Mauritius,4182.138,3.306 +Mexico,445991.937,3.615 +Mongolia,19276,6.267 +Montenegro,2206.233,3.547 +Morocco,58149.86,1.627 +Mozambique,7624.932,0.257 +Myanmar,30404.919,0.57 +Namibia,4037.15,1.593 +Nepal,10113.953,0.345 +Netherlands,155574.278,9.081 +New Zealand,32241.597,6.673 +Nicaragua,5106.281,0.821 +Niger,2048.704,0.095 +Nigeria,85988.513,0.45 +North Macedonia,7440.699,3.572 +Norway,34760.858,6.587 +Oman,65498.56,14.128 +Pakistan,183447.068,0.931 +Panama,9612.198,2.345 +Paraguay,7654.689,1.124 +Peru,49693.643,1.545 +Philippines,126487.694,1.206 +Poland,305841.991,7.96 +Portugal,50757.815,4.928 +Qatar,80116.551,30.359 +Republic of Korea,600034.367,11.663 +Republic of Moldova,7526.673,2.12 +Romania,70788.76,3.614 +Russian Federation,1536878.825,10.636 +Saudi Arabia,532181.611,16.157 +Senegal,8311.532,0.524 +Serbia,46129.569,6.569 +Singapore,47407.144,8.447 +Slovakia,32212.012,5.924 +Slovenia,13410.666,6.491 +South Africa,421682.392,7.435 +South Sudan,1549.031,0.123 +Spain,253423.277,5.446 +Sri Lanka,23103.271,1.077 +Sudan,18777.895,0.463 +Suriname,1928.134,3.425 +Sweden,37643.785,3.743 +Switzerland,37135.572,4.394 +Syrian Arab Republic,23031.045,1.261 +Tajikistan,5843.657,0.655 +Thailand,244254.785,3.538 +Togo,2082.434,0.267 +Trinidad and Tobago,18007.573,13.154 +Tunisia,26156.972,2.268 +Turkey,378631.09,4.714 +Turkmenistan,68998.881,11.983 +Ukraine,171300.035,3.821 +United Arab Emirates,196510.174,20.905 +United Kingdom,358731.281,5.432 +United Rep. of Tanzania,10131.79,0.177 +United States of America,4761301.727,14.606 +Uruguay,5872.957,1.699 +Uzbekistan,81156.397,2.506 +Venezuela (Boliv. Rep. of),113717.543,3.556 +Viet Nam,191243.601,2.002 +Yemen,8919.998,0.316 +Zambia,6007.872,0.351 +Zimbabwe,9714.938,0.588 diff --git a/lib/tasks/project_components/charting_champions_second_starter/gdp.csv b/lib/tasks/project_components/charting_champions_second_starter/gdp.csv new file mode 100644 index 000000000..094218c2d --- /dev/null +++ b/lib/tasks/project_components/charting_champions_second_starter/gdp.csv @@ -0,0 +1,202 @@ +Aruba,3056424581.00559 +Afghanistan,18869945677.9599 +Angola,122123822333.59 +Albania,13019693450.8816 +Andorra,3000180750.11297 +United Arab Emirates,385605506854.881 +Argentina,643628665302.668 +Armenia,11527458565.7334 +American Samoa,602000000 +Antigua and Barbuda,1467977777.77778 +Australia,1329188475752.32 +Austria,417237869115.93 +Azerbaijan,40865558912.3867 +Burundi,3172292379.36329 +Belgium,502698069366.942 +Benin,12701656930.6889 +Burkina Faso,14106956830.0857 +Bangladesh,249711027660.253 +Bulgaria,58971520599.2509 +Bahrain,35473776595.7447 +Bosnia and Herzegovina,18080118128.3854 +Belarus,54726595249.1849 +Belize,1836600000 +Bermuda,7142316000 +Bolivia,37508642165.3366 +Brazil,2062831045935.95 +Barbados,4978000000 +Brunei Darussalam,12128104859.1498 +Bhutan,2450364928.07302 +Botswana,17405588070.4332 +Central African Republic,2072350151.13061 +Canada,1649878054226.82 +Switzerland,679950481622.843 +Chile,277044950259.009 +China,12310409370892.8 +Cote d'Ivoire,51588158717.5348 +Cameroon,35009262788.15 +Colombia,311883730690.129 +Comoros,1077439662.5798 +Cabo Verde,1769787215.14611 +Costa Rica,58481858042.5721 +Cuba,96851000000 +Curacao,3116610111.73184 +Cayman Islands,5153091157.77225 +Cyprus,22729184365.1152 +Czech Republic,218628940951.675 +Germany,3682602479929.42 +Djibouti,2751461055.59307 +Dominica,519837037.037037 +Denmark,332121063806.391 +Dominican Republic,79997975622.7604 +Algeria,170163165960.516 +Ecuador,104295862000 +Egypt,235733695652.174 +Spain,1312539279462.36 +Estonia,26951648828.5789 +Ethiopia,81770791970.982 +Finland,255232257243.53 +Fiji,5353404418.66413 +France,2595151045197.65 +Faroe Islands,2905102303.5333 +Fed. Sts. Micronesia, 366666800 +Gabon,14929488770.7315 +United Kingdom,2666229179958.01 +Georgia,16242916915.7203 +Ghana,58998132329.6173 +Guinea,10324668266.5921 +The Gambia,1504909753.28746 +Guinea-Bissau,1350177127.5523 +Equatorial Guinea,12200914929.5961 +Greece,203588424740.3 +Grenada,1125685185.18519 +Greenland,2826651925.66902 +Guatemala,71612352644.9734 +Guam,5851000000 +Guyana,4748174334.14044 +Hong Kong,341244161576.759 +Honduras,23136232229.6069 +Croatia,55481644098.0495 +Haiti,14213814582.7938 +Hungary,142961605733.026 +Indonesia,1015618742565.81 +Isle of Man,6979581724.58172 +2,2652754685834.59 +Ireland,335663113507.851 +Islamic Rep. Iran,445345256459.105 +Iraq,195473049873.096 +Iceland,24488176540.5908 +Israel,353253406982.751 +Italy,1961796197354.36 +Jamaica,14806340821.0871 +Jordan,41408960786.8028 +Japan,4866864409657.68 +Kazakhstan,166805800595.704 +Kenya,78965004656.1823 +Kyrgyz Republic,7702934800.12836 +Cambodia,22177200511.5811 +Kiribati,187276210.91355 +St. Kitts and Nevis,996944444.444444 +South Korea,1623901496835.79 +Kuwait,120707220573.689 +Lao PDR,16853087485.4118 +Lebanon,53140638269.1211 +Liberia,3285455000 +Libya,37883243650.452 +St. Lucia,1999090407.40741 +Liechtenstein,6552858738.70214 +Sri Lanka,87428125557.573 +Lesotho,2405289384.40985 +Lithuania,47758736931.7801 +Luxembourg,64181944722.7283 +Latvia,30458763245.5118 +Macao,50751059058.0613 +Morocco,109682728023.112 +Monaco,6431314957.07185 +Moldova,9669759987.02633 +Madagascar,13176313233.1978 +Maldives,4754352301.4104 +Mexico,1158913035796.37 +Marshall Islands,212881000 +North Macedonia,11307058382.3435 +Mali,15365627045.0866 +Malta,13146963159.1185 +Myanmar,68945867477.6054 +Montenegro,4844606145.7683 +Mongolia,11425755279.5395 +Northern Mariana Islands,1601000000 +Mozambique,13219084261.3664 +Mauritania,6758390728.71734 +Mauritius,13259351418.4459 +Malawi,6303292264.18905 +Malaysia,319112136545.438 +Namibia,12741746523.8632 +Niger,11189541083.3975 +Nigeria,375746469538.666 +Nicaragua,13785909906.1925 +Netherlands,833869641687.06 +Norway,398393955268.99 +Nepal,25180583770.2719 +Nauru,109585941.624557 +New Zealand,205415864857.984 +Oman,70598026282.7982 +Pakistan,304567253219.097 +Panama,62219000000 +Peru,211007207483.515 +Philippines,328480738147.216 +Palau,286106800 +Papua New Guinea,22742613549.3956 +Poland,526508877305.321 +Puerto Rico,103445500000 +Portugal,221357874718.93 +Paraguay,39008900331.6733 +West Bank and Gaza,16128000000 +Qatar,161099122215.307 +Romania,211695422578.655 +Russian Federation,1574199387070.9 +Rwanda,9253098954.27769 +Saudi Arabia,688586244286.512 +Sudan,45021077955.328 +Senegal,20996564751.5994 +Singapore,341863349989.138 +Solomon Islands,1483758906.61054 +Sierra Leone,3739577973.23943 +El Salvador,24979200000 +San Marino,1528630707.49794 +Serbia,44179055279.8887 +Sao Tome and Principe,375614556.382313 +Suriname,3216207914.31281 +Slovak Republic,95494424978.5166 +Slovenia,48586603447.6954 +Sweden,541018749769.097 +Eswatini,4402972999.53486 +Sint Maarten (Dutch part),1191620111.73184 +Seychelles,1524486800.36049 +Turks and Caicos Islands,1022365000 +Chad,10000395242.1457 +Togo,4819949975.26077 +Thailand,456294704152.647 +Tajikistan,7157865188.25222 +Turkmenistan,37926285714.2857 +Timor-Leste,1599338100 +Tonga,460379144.989821 +Trinidad and Tobago,22474828527.1775 +Tunisia,39802430354.6334 +Turkey,858988610574.035 +Tuvalu,40619251.9926426 +Tanzania,53320625958.5628 +Uganda,30756466548.0543 +Ukraine,112190355158.178 +Uruguay,59530088537.3307 +United States,19519353692000 +Uzbekistan,59159945320.5667 +St. Vincent and the Grenadines,792177777.777778 +Virgin Islands (U.S.),3855000000 +Vietnam,223779865815.183 +Vanuatu,880043553.748442 +Samoa,832153612.557186 +Kosovo,7245707184.81699 +Yemen,26736139802.004 +South Africa,349554116683.818 +Zambia,25868165344.8185 +Zimbabwe,22040902300 diff --git a/lib/tasks/project_components/charting_champions_second_starter/main.py b/lib/tasks/project_components/charting_champions_second_starter/main.py new file mode 100644 index 000000000..4e6661607 --- /dev/null +++ b/lib/tasks/project_components/charting_champions_second_starter/main.py @@ -0,0 +1,10 @@ +#!/bin/python3 +from pygal import Bar + +# Create a chart + + +# Add data to the chart + + +# Display the chart diff --git a/lib/tasks/project_components/charting_champions_second_starter/mcu.csv b/lib/tasks/project_components/charting_champions_second_starter/mcu.csv new file mode 100644 index 000000000..85d964c85 --- /dev/null +++ b/lib/tasks/project_components/charting_champions_second_starter/mcu.csv @@ -0,0 +1,23 @@ +Iron Man,126,585366247 +The Incredible Hulk,112,264770996 +Iron Man 2,124,623933331 +Thor,115,449326618 +Captain America: The First Avenger,124,370569774 +The Avengers,143,1518812988 +Iron Man 3,130,1214811252 +Thor: The Dark World,112,644783140 +Captain America: The Winter Soldier,136,714421503 +Guardians of the Galaxy,121,772776600 +Avengers: Age of Ultron,141,1402805868 +Ant-Man,117,519311965 +Captain America: Civil War,147,1153296293 +Doctor Strange,115,677718395 +Guardians of the Galaxy Vol. 2,136,863756051 +Spider-Man: Homecoming,133,880166924 +Thor: Ragnarok,130,853977126 +Black Panther,134,1346913161 +Avengers: Infinity War,149,2048359754 +Ant-Man and the Wasp,118,622674139 +Captain Marvel,123,1128274794 +Avengers: Endgame,181,2797501328 +Spider-Man: Far From Home,129,1131927996 diff --git a/lib/tasks/project_components/charting_champions_second_starter/medals.csv b/lib/tasks/project_components/charting_champions_second_starter/medals.csv new file mode 100644 index 000000000..f8139a21a --- /dev/null +++ b/lib/tasks/project_components/charting_champions_second_starter/medals.csv @@ -0,0 +1,138 @@ +United States,2399 +Russia,1413 +Great Britain,1304 +France,780 +Germany,671 +Italy,549 +Sweden,483 +Hungary,476 +China,473 +Australia,468 +Japan,398 +Finland,302 +Romania,301 +Canada,279 +Poland,271 +Netherlands,266 +South Korea,243 +Bulgaria,214 +Cuba,209 +Switzerland,185 +Denmark,179 +Norway,148 +Czechoslovakia,143 +Belgium,142 +Spain,131 +Ukraine,115 +Greece,111 +Brazil,108 +New Zealand,99 +Austria,86 +Kenya,86 +Turkey,86 +Yugoslavia,83 +South Africa,76 +Belarus,75 +Argentina,70 +Jamaica,67 +Mexico,62 +Iran,60 +Kazakhstan,52 +North Korea,47 +Ethiopia,45 +Czech Republic,44 +Estonia,33 +Ireland,29 +Indonesia,27 +Azerbaijan,26 +Egypt,26 +India,26 +Georgia,25 +Mongolia,24 +Slovakia,24 +Thailand,24 +Croatia,23 +Nigeria,23 +Portugal,23 +Morocco,22 +Lithuania,21 +Uzbekistan,20 +Colombia,19 +Latvia,19 +Slovenia,19 +Chinese Taipei,19 +Trinidad and Tobago,18 +Algeria,15 +Chile,13 +Armenia,12 +Australasia,12 +Bahamas,12 +Venezuela,12 +Pakistan,10 +Tunisia,10 +Uruguay,10 +Philippines,9 +Serbia and Montenegro,9 +Puerto Rico,8 +Zimbabwe,8 +Israel,7 +Moldova,7 +Serbia,7 +Uganda,7 +Dominican Republic,6 +Malaysia,6 +Cameroon,5 +Bohemia,4 +Costa Rica,4 +Ghana,4 +Iceland,4 +Lebanon,4 +Namibia,4 +Peru,4 +Qatar,4 +Singapore,4 +Hong Kong,3 +Kyrgyzstan,3 +Panama,3 +Saudi Arabia,3 +Syria,3 +Tajikistan,3 +Afghanistan,2 +British West Indies,2 +Ecuador,2 +Haiti,2 +Kuwait,2 +Luxembourg,2 +Mozambique,2 +Sri Lanka,2 +Suriname,2 +Tanzania,2 +Vietnam,2 +Zambia,2 +Bahrain,1 +Barbados,1 +Bermuda,1 +Botswana,1 +Burundi,1 +Ivory Coast,1 +Cyprus,1 +Djibouti,1 +Eritrea,1 +Gabon,1 +Grenada,1 +Guatemala,1 +Guyana,1 +Iraq,1 +Macedonia,1 +Mauritius,1 +Montenegro,1 +Netherlands Antilles,1 +Niger,1 +Paraguay,1 +Senegal,1 +Sudan,1 +Togo,1 +Tonga,1 +United Arab Emirates,1 +Virgin Islands,1 +Liechtenstein,0 diff --git a/lib/tasks/project_components/charting_champions_second_starter/pop.csv b/lib/tasks/project_components/charting_champions_second_starter/pop.csv new file mode 100644 index 000000000..1c8e797f6 --- /dev/null +++ b/lib/tasks/project_components/charting_champions_second_starter/pop.csv @@ -0,0 +1,187 @@ +Afghanistan,38928346,60,18,25 +Albania,2877797,105,36,63 +Algeria,43851044,18,29,73 +Andorra,77265,164,45,88 +Antigua and Barbuda,97929,223,34,26 +Argentina,45195774,17,32,93 +Armenia,2963243,104,35,63 +Aruba,106766,593,41,44 +Australia,25499884,3,38,86 +Austria,9006398,109,43,57 +Azerbaijan,10139177,123,32,56 +Bahamas,393244,39,32,86 +Bahrain,1701575,2239,32,89 +Bangladesh,164689383,1265,28,39 +Barbados,287375,668,40,31 +Belarus,9449323,47,40,79 +Belgium,11589623,383,42,98 +Belize,397628,17,24,46 +Benin,12123200,108,19,48 +Bhutan,771608,20,28,46 +Bolivia,11673021,11,26,69 +Bosnia and Herzegovina,3280819,64,43,52 +Brazil,212559417,25,33,88 +Brunei,437479,83,32,80 +Bulgaria,6948445,64,45,76 +Burkina Faso,20903273,76,18,31 +Cabo Verde,554441,138,27.6,68 +Cambodia,16718965,95,26,24 +Cameroon,26545863,56,19,56 +Canada,37742154,4,41,81 +Central African Republic,37742154,8,18,43 +Chad,16302699,13,16.6,23.3 +Chile,19116201,26,35,85 +Hong Kong,7496981,7140,45,100 +China,1439323776,153,38,61 +Colombia,50882891,46,31,80 +Congo (Brazzaville),5518087,16,19,70 +Congo (Kinshasa),89561403,40,17,46 +Costa Rica,5094118,100,33,80 +Cote d'Ivoire,26378274,83,19,51 +Croatia,4105267,73,44,58 +Cuba,11326616,106,42,78 +Cyprus,1207359,131,37,67 +Czechia,10708981,139,43,74 +Denmark,5792202,137,42,88 +Diamond Princess,3500,25,62,100 +Djibouti,988000,43,27,79 +Dominica,71986,96,33.5,74 +Dominican Republic,10847910,225,28,85 +Ecuador,17643054,71,28,63 +Egypt,102334404,103,25,43 +El Salvador,6486205,313,27.6,73.4 +Equatorial Guinea,1402985,50,22,73 +Eritrea,3546421,35,19.2,63.3 +Estonia,1326535,31,42,68 +Eswatini,1160164,67,21,30 +Ethiopia,114963588,115,19,21 +Faroe Islands,48873,35,38,88 +Fiji,896445,49,27.9,59.1 +Finland,5540720,18,43,86 +France,65273511,119,42,82 +French Guiana,298682,4,25,87 +Gabon,2225734,9,23,87 +Gambia,2416668,239,18,59 +Georgia,3989167,57,38,58 +Germany,83783942,240,46,76 +Ghana,31072940,137,22,57 +Greece,10423054,81,46,85 +Grenada,112523,331,32,35.5 +Greenland,56770,0,34,87 +Guadeloupe,400124,237,44,96 +Guam,168775,313,31,95 +Guatemala,17915568,167,23,52 +Guernsey,70000,965,44,86 +Guinea,13132795,53,18,39 +Guinea-Bissau,1968001,70,18.8,44.9 +Guyana,786552,4,27,27 +Haiti,11402528,414,24,56.9 +Holy See,801,2003,40,100 +Honduras,9904607,89,24,57 +Hungary,9660351,107,43,72 +Iceland,341243,3,37,94 +India,1380004385,464,28,35 +Indonesia,273523615,151,30,56 +Iran,83992949,52,32,76 +Iraq,40222493,93,21,73 +Ireland,4937786,72,38,63 +Israel,8655535,400,30,93 +Italy,60461826,206,47,69 +Jamaica,2961167,273,31,55 +Japan,126476461,347,48,92 +Jersey,106800,819,38,98 +Jordan,10203134,115,24,91 +Kazakhstan,18776707,7,31,58 +Kenya,53771296,94,20,28 +Kosovo,1810463,159,29,65 +Kuwait,4270571,240,37,92 +Kyrgyzstan,6524195,34,26,36 +Laos,7275560,32,24.4,35.7 +Latvia,1886198,30,44,69 +Lebanon,6825445,667,30,78 +Liberia,5057681,53,19,53 +Libya,6847352,4,28.8,78.2 +Liechtenstein,38128,109,41,15 +Lithuania,2722289,43,45,71 +Luxembourg,625978,242,40,88 +Madagascar,27691018,48,19.6,38.5 +Malaysia,32365999,99,30,78 +Maldives,540544,1802,30,35 +Mali,20250833,17,16.3,44 +Malta,441543,1380,43,93 +Martinique,375265,354,47,92 +Mauritania,4649658,5,20,57 +Mauritius,1271768,626,37,41 +Mayotte,272815,728,20,46 +Mexico,128932753,66,29,84 +Moldova,4033963,123,38,43 +Monaco,39242,26337,54,100 +Mongolia,3278290,2,28,67 +Montenegro,628066,47,39,68 +Morocco,36910560,83,30,64 +Mozambique,31255435,40,17.6,38.3 +Namibia,2540905,3,22,55 +Nepal,29136808,203,25,21 +Curacao,164093,370,41.6,88.7 +Netherlands,17134872,508,43,92 +New Zealand,4822233,18,38,87 +Nicaragua,6624554,55,26.5,57.2 +Niger,24206644,19,15.2,16.5 +Nigeria,206139589,226,18,52 +North Macedonia,2083374,83,39,59 +Norway,5421241,15,40,83 +Oman,5106626,16,31,87 +Pakistan,220892340,287,23,35 +Panama,4314767,58,30,68 +Paraguay,7132538,18,26,62 +Peru,32971854,26,31,79 +Philippines,109581078,368,26,47 +Poland,37846611,124,42,60 +Portugal,10196709,111,46,66 +Puerto Rico,2860853,323,44,88 +Qatar,2881053,248,32,96 +Republic of the Congo,5518087,16,17,46 +Reunion,895312,358,36,100 +Romania,19237691,84,43,55 +Russia,145934462,9,40,74 +Rwanda,12952218,525,20,18 +Saint Kitts and Nevis,53199,205,34.8,32.9 +Saint Lucia,183627,301,34,19 +Saint Vincent and the Grenadines,115000,307,33,78 +San Marino,33931,566,47,97 +Saudi Arabia,34813871,16,32,84 +Senegal,16743927,87,19,49 +Serbia,8737371,100,42,56 +Seychelles,98347,214,34,56 +Singapore,5850342,8358,42,99 +Slovakia,5459642,114,41,54 +Slovenia,2078938,103,45,55 +Somalia,15893222,25,17,47 +South Africa,59308690,49,28,67 +South Korea,51269185,527,44,82 +Spain,46754778,94,45,80 +Sri Lanka,21413249,341,34,18 +Sudan,43849260,25,20,35 +Suriname,586632,4,29,65 +Sweden,10099265,25,41,88 +Switzerland,8654622,219,43,74 +Syria,17390388,95,25.6,60 +Taiwan,23816775,673,42,79 +Tanzania,59734218,67,18,37 +Thailand,69799978,137,40,51 +Timor-Leste,1318445,89,20.8,32.8 +Togo,8278724,152,19,43 +Trinidad and Tobago,1399488,273,36,52 +Tunisia,11818619,76,33,70 +Turkey,84339067,110,32,76 +US,331002651,36,38,83 +Uganda,45741007,229,16.7,25.7 +Ukraine,43733762,75,41,69 +United Arab Emirates,9890402,118,33,86 +United Kingdom,67886011,281,40,83 +Uruguay,3473730,20,36,96 +Uzbekistan,33469203,79,28,50 +Venezuela,28435940,32,30,80 +Vietnam,97338579,314,32,38 +Zambia,18383955,25,18,45 +Zimbabwe,14862924,38,18.7,38.4 diff --git a/lib/tasks/project_components/charting_champions_second_starter/project_config.yml b/lib/tasks/project_components/charting_champions_second_starter/project_config.yml new file mode 100644 index 000000000..ee6753602 --- /dev/null +++ b/lib/tasks/project_components/charting_champions_second_starter/project_config.yml @@ -0,0 +1,33 @@ +NAME: "Charting Champions" +IDENTIFIER: "charting-champions-second-starter" +COMPONENTS: + - name: "main" + extension: "py" + location: "main.py" + index: 0 + default: true + - name: "medals" + extension: "csv" + location: "medals.csv" + index: 1 + default: false + - name: "carbon" + extension: "csv" + location: "carbon.csv" + index: 2 + default: false + - name: "mcu" + extension: "csv" + location: "mcu.csv" + index: 3 + default: false + - name: "pop" + extension: "csv" + location: "pop.csv" + index: 4 + default: false + - name: "gdp" + extension: "csv" + location: "gdp.csv" + index: 5 + default: false