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
This commit is contained in:
tsmith37
2025-10-11 16:16:42 -04:00
parent 5d3eca7250
commit 96b2eb823b

View File

@@ -62,14 +62,24 @@ def scale(value, domain_min, domain_max, range_min, range_max):
def get_x_values(points): def get_x_values(points):
"Returns the first value for each point in 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): def get_y_values(points):
"Returns the second value for each point in points." "Returns the second value for each point in points."
for x, y in points: a, b, c = points
return (y) y_points =[]
for x, y in (points):
y_points.append(y)
return(y_points)