In given code, I am extracting first column from data_points list which contains a dictionary. The keys of the dictionary contain a tuple of (x,y) coordinates. I extract minX and minY from the keys. How can I compress the code?
x_list = []
y_list = []
keys = data_points[0].keys()
for i in keys:
x_list.append(i[0])
y_list.append(i[1])
min_value = (min(x_list), min(y_list))