From 96b2eb823b49db768948790a6a0d7565265c27e8 Mon Sep 17 00:00:00 2001 From: tsmith37 Date: Sat, 11 Oct 2025 16:16:42 -0400 Subject: [PATCH] finished writting the code for get_x_y_values writing this code was a bit more difficult for me. I had to find a new way of thinking to solve the problems and when i was stuck I asked teachers, classmates and google. It was a combination of all of them that helped me --- transform.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/transform.py b/transform.py index b32615f..2c76ee9 100644 --- a/transform.py +++ b/transform.py @@ -62,14 +62,24 @@ def scale(value, domain_min, domain_max, range_min, range_max): def get_x_values(points): "Returns the first value for each point in points." + a, b, c = points + x_points =[] + for x, y in (points): + x_points.append(x) + + return(x_points) + + + + - for x, y in points: - return(x) - def get_y_values(points): "Returns the second value for each point in points." - for x, y in points: - return (y) - + a, b, c = points + y_points =[] + for x, y in (points): + y_points.append(y) + + return(y_points)